Java – JAsteroids

Download (.jar)Webstart
Requires Java to open

I started on this during the summer between first and second year of university. I believe this was the first of my projects to have a traditional game loop with regular input, game and animation updates. I progressed fairly well with this but ultimately abandoned it as the summer finished and started up at university again, I never went back to complete it.

Controls are arrow keys for moving the ship, and space bar to fire shots.

Features

  • Basic framework for an asteroids game.
  • Ship movement and shooting.
  • Random asteroid/polygon generation.
  • Collision detection.
  • Screen wrapping for the ship and the asteroid.
  • Auto-pauses when the window loses focus.
  • A nifty space background image that I created myself!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">