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

Report as inappropriate.

zotus5
zotus5 presents ...

2014/10/1

space asteroids

No description.

1670 views / 10 in the last 7 days

Tags: game cabrillo

Your browser does not support the canvas tag.
ajmetalajmetal

2014/10/2

Fun game! I tried multiple times to reach the elevator unsuccessfully. Perhaps you could add a function to "boost" speed temporarily. for instance you could set the move() method to use a variable for speed so.... private int speed = 5; public void act() { move(speed); boost(); } public void boost() { if (Greenfoot.isKeyDown("space")) { speed = speed +3; } else { speed = 5; } } Then if you wanted to make it so the player could use it a limited amount you could set up a system of static variables. Not 100 percent sure that code works properly.

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

Who likes this?

No votes yet.