Asteriods
Due: Thursday, Oct. 8th in class
Assignment:
In this assignment you are asked to design the popular old video game
Asteriods. For those of you who are unfamiliar with the game, here are
the specs:
The player is represented by a Space Ship, trapped forever in an asteroid
field. Your goal is to blow up as many asteroids as possible by
shooting them. If you are hit by an asteroid, you will die, unless you
have your shield up. Your sheilds will run out of energy after being up
for a certain amount of time.
The game starts with some number of Asteriods moving slowly about the
screen and your ship sitting still in the center.
Movement:
Your ship can rotate left or right, or move forward (Thrust). Since
there is no friction in space, once you fire up the engines you do not
slow down! Your game should have a key input for each time of movement,
as well as for firing your gun, and raising your shields.
The Asteroids should move in the same way as your ship, however they
should not change direction unless they collide with another
Asteroid.
Blowing stuff up:
- When one of your bullets hits an Asteroid, the Asteroid blows up,
and the bullet disappears
- When a bullet hits you, you blow up, unless it hits your shield.
Either way, the bullet disappears
- When an Asteroid hits you with your shields down, your ship blows
up
- When an Asteroid hits you with your sheilds up, the asteroid blows
up
- When an Asteroid hits another Asteriod, they bounce off each other
Let's start designing!
Last modified: Thu Oct 1 14:13:41 EDT 1998