Join for FREE | Take the Tour Lost Password?
Shop deviantART for the
holidays and save BIG!
Click here! :holly:
[x]

deviantART

:turbopoke:
 
©2008-2009 *RodrevMcfox
:iconrodrevmcfox:

Artist's Comments

Protect the City!

EDIT: Your personal high score will now be saved. If your best score is 70, it will stand on 70 until you beat it. (It's saved as a cookie. If you you clean your web cookies, the score will be reset)
Other: Font turned into object so you will get the same font I had on my computer.

My 4th flash game, and now it begin to get interesting :) I have followed the book of Gary Rosenweig's, but I have added some few things:
- If you hit a plan you don't loose your bullet.
- There are 5 different plans and they have 5 different scores.

Everything you see is made by me. The code I have written(not copy-paste, you learn nothing from that).

Please report bugs or other stuff. There may be a update in the future. I hope to be able to save the score, but it have been a problem for me. It's not like Java with write to file.

Please post your score, and tell me what you think.

Comments


love 0 0 joy 1 1 wow 0 0 mad 0 0 sad 0 0 fear 0 0 neutral 0 0
:iconaacrashburn:
Awesome job Stian! Reminds of Atlantis on the Atari 2600! ;)
:iconsajuukkuujas:
Niice job and a great game Stian! :thumb79452007:
:iconrodrevmcfox:
Thank you :) What is the thumb for? I have wonder what it do.

--
† Religion is dead! Jesus is alive! Hallelujha! †
:iconrodrevmcfox:
It's a classic game set up :) Thank you, and thanks for the fav!

--
† Religion is dead! Jesus is alive! Hallelujha! †
:iconalphonsecapone:
Nice one. Doing that myself, only we had to alter the code to make a side-scroller action game. Having some problems with hit testing atm, but otherwise my game works... Ill see if Ill upload it here on DA when it is done.

--
"What your eyes see and ears hear, the mind believes. But eyes and ears alike can be deceived, only the mind alone can know true reality".
:iconrodrevmcfox:
Thanks. I'm coming to a side scrolling game, but it don't have any weapon other then jumping on things so I will have to do some modifications.

Here is my hit test if it helps:
public function checkForHits(event:Event) {
for (var bulletNum:int=bullets.length-1;bulletNum >=0;bulletNum--){
for (var airplaneNum:int=airplanes.length-1;airplaneNum>=0;airplaneNum--){
if (bullets[bulletNum].hitTestObject(airplanes[airplaneNum])){
shotsHit += airplanes[airplaneNum].planeHit();
bullets[bulletNum].deleteBullet();


shotsLeft += 1;

showGameScore();
break;
}

}// end for
}//end for

--
† Religion is dead! Jesus is alive! Hallelujha! †
:iconegoneagle:
Du har gjort ett bra spel, det här lär jag fråga en av mina vänner om dina insatster på att utveckla spel på deviantART. :thumbsup:

--
Who you gonna call?
GHOSTBUSTERS!!!

Watch my videos on YouTube [link]
:iconrodrevmcfox:
Tusen takk :)

--
† Religion is dead! Jesus is alive! Hallelujha! †
:iconalphonsecapone:
Yeah I know... I got about the same code (with some class names different). I have tried a tracker but it will not track past the first line for some reason.
I get no error messages, the bullet just flies straight through. without anything happening.

Flash can be frustrating at times >_>

--
"What your eyes see and ears hear, the mind believes. But eyes and ears alike can be deceived, only the mind alone can know true reality".

Details

March 8, 2008
20.4 KB
73.5 KB
827×609

Statistics

18
5 [who?]
660 (3 today)
11 (0 today)

Share

Link
Embed
Thumb

Site Map