caseyscarborough / j-asteroids

An implementation of the classic arcade game Asteroids using Java.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Asteroids in Java

This is an bare bones implementation of the classic Asteroids video arcade game using the Java programming language.

The game is a simple black screen with asteroids that float around. The objective of the game is to fly your space ship around the screen without getting hit by any asteroids while at the same time shooting as many asteroids as possible and accumulating points.

alt text

The technical documentation for the game can be viewed here.

Controls

The following are the controls in the game:

  • W: Forward (Accelerate)
  • A: Rotate Counter-clockwise
  • S: Reverse (Slow down)
  • D: Rotate Clockwise
  • E: Stop the ship at the current location
  • Enter: Fire lasers

Scoring System

The player is able to accumulate score by destroying asteroids during gameplay. Each asteroid destroyed earns the player 10 points. If the player's ship is hit by an asteroid, the player will return to the starting position and lose 10 points.

After destroying all asteroids, the player will receive a final score and some statistics about the game such as total shots fired, asteroids destroyed, times ship exploded, and accuracy. The player can then exit the game using the exit button.

Running the Game

Included in the repository is a .jar executable file. It contains the game in its currently developed state. This can be run from the command line by using the following command:

java -jar asteroids.jar

About

An implementation of the classic arcade game Asteroids using Java.


Languages

Language:Java 100.0%