All Classes
| Class | Description |
|---|---|
| Alien | |
| Animation | |
| Asteroids |
Asteroids.java - A clone of classic Atari arcade game Asteroids
Algorithm:
Create gamecontroller with public scope to give all objects access
Load images and highscore, exit if error occurs
Create game main menu with start and exit options
If player selects exit skip to
If player selects start clear menu and make game window
Create three starting asteroids in game
Put player at middle of screen
Player turns with left and right, moves with up, and shoots with space
Check all bullets for collisions with asteroids, skip to step if none
Destroy bullet and asteroid and increment score
Check all bullets for collisions with player, skip to step if none
Destroy bullet and player and decrement lives
Check all asteroids for collisions with player, skip to step if none
Destroy asteroid and player and decrement lives
If player lives reach zero, display game over message and return to step 3, updating highscore if necessary
If player lives above zero, return to step 9
Save high scores and terminate program
|
| BigAsteroid |
BigAsteroid.java - A class to represent a large asteroid
|
| Bullet |
Bullet.java - A bullet shot by the player\
|
| GameController |
GameController.java - A class to control flow of asteroids game
|
| GameFrame |
GameFrame.java - A class to generate game window and handle GUI
|
| GameOverMessage |
GameOverMessage.java - A class to display game over message at end of game
|
| GamePanel | |
| GamePiece |
GamePiece.java - An abstract class used to build all game pieces in game
|
| MediumAsteroid |
MediumAsteroid.java - A class to represent a medium asteroid
|
| Player |
Player.java - A ship for the player to manipulate during game
|
| SmallAsteroid |
SmallAsteroid.java - A class to represent a small asteroid
|