Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 1.29 KB

README.md

File metadata and controls

26 lines (19 loc) · 1.29 KB

Asteroids Game

Small game that uses event handling to avoid multiple obstacles, requires Java`s Abstract Window Toolkit and JavaFX GUI libraries to implement.

asteroidgame

Setup Instructions

  1. Download and store AsteroidTest folder onto your computer`s home directory. The game will not operate without all jar files.

  2. Navigate to the AndroidTest folder using the command line.

  3. Inside that folder run this command: Java -jar AsteroidGame.jar (number of desired asteroids)

    • ex: Java -jar AsteroidGame.jar 10 asteroidcmd

    • Game can also be set up in an IDE

  4. GUI will open to play the game

How to Play

• "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)