Skip to content

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

Notifications You must be signed in to change notification settings

JuleeyG/asteroids-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

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)

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published