This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

nwatkins
nwatkins presents ...

2009/3/27

SpaceInvaders

The game over screen is finally working (dropped the old one all together). Displays your score when you die or when the enemies reach a certain point. Changed the enemies around so they don't overlap. Added in a random UFO.

Movement: arrow keys and "a" and "d" keys
Fire: spacebar

7586 views / 27 in the last 7 days

Tags: game demo with-source

open in greenfoot
Your browser does not support the canvas tag.
mjrb4mjrb4

2009/3/27

Nice start! A lot that could be added here, but a great basis for more - good work.
A new version of this scenario was uploaded on Wed Apr 01 19:04:38 UTC 2009
A new version of this scenario was uploaded on Tue Apr 14 14:56:41 UTC 2009
mjrb4mjrb4

2009/4/14

One way to solve the overlapping problem would be to either expand the world a bit or shrink the number of enemies, and then code it so that when one enemy hits the edge of the screen, they all change direction together (rather than individually.) Depending on your implementation, this could be as simple as changing the world's co-ordinates and making a variable static :-)
A new version of this scenario was uploaded on Wed Apr 15 14:14:36 UTC 2009
mjrb4mjrb4

2009/4/17

Haha, nice game over screen ;)
tombud999tombud999

2009/4/17

The game is still running behind the game-over screen! :D You can peek by sliding the screen with arrow keys, you can still firing bullets too. : )
A new version of this scenario was uploaded on Thu Apr 23 14:58:01 UTC 2009

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.