Asteroids Recommended Steps

  1. Get a small triangle to display in center of screen. This will be your ship.
  2. In advanceFrame use some method of input (I would say keyboard arrows) to rotate the ship.
  3. Place some asteroids on the screen. Use an array or ArrayList to store them.
  4. Make the asteroids move all with same velocity.
  5. Make the asteroid velocities random.
  6. Make the asteroids wrap so when they go off one side they come back in from the other.
  7. Add ability to make the ship move. Hint: Either use a tracker or write the code yourself.
  8. Make the ship wrap like the asteroids do.
  9. Add collisions between the ship and asteroids, so you lose when one hits your ship.
  10. Add the ability to fire bullets from your ship with a keypress or mouse button click. Hint: use an array or ArrayList to store the bullets. It is okay (preferred actually) to have a limited amount of bullets the user can fire at one time.
  11. Make the bullets disappear when reaching end of screen. Hint: The best way of making one disappear is to move it WAY offscreen and set its tracker to a velocity of zero. If you just set it to invisible collisions with asteroids will still register.
  12. Make the bullets capable of hitting the asteroids and make both disappear when they do hit.
  13. When one asteroid is destroyed, make a new one appear elsewhere. Hint: instead of making the asteroid go away like in the previous step, just move it somewhere new and give it a new velocity.
  14. Add a lives counter so you have more than one ship before game over.
  15. Add scoring.
  16. Extras: