Small game that uses event handling to avoid multiple obstacles, requires Java`s Abstract Window Toolkit and JavaFX GUI libraries to implement.
-
Download and store AsteroidTest folder onto your computer`s home directory. The game will not operate without all jar files.
-
Navigate to the AndroidTest folder using the command line.
-
Inside that folder run this command: Java -jar AsteroidGame.jar (number of desired asteroids)
-
GUI will open to play the game
• "Start New Game" button begins new game • Right, left, and up arrow keys control the rocket's rotation and forward motion. • Pressing spacebar will launch a missile and generate a sound. • 50 points are added to the score when an asteroid is hit. • Asteroids respawn along the boundary of the playing area at a random location according to the rocket's direction of motion. • Game ends when an asteroid hits the rocket (Game has no formal "Game Over" ending)