Star Trek

Captain's log: Star date 20040401
While circling Uranus looking for Klingons, we experienced turbulence. The
3d moon had just exploded. Before we could investigate, a distress call came
in from the NCC Academy. They were under attack. We proceeded at warp-speed
but
arrived
too late. A scan of the campus revealed no intelligent life present,
only non-CS majors and other primitive life forms.
Where had all the CS Cadets gone?
Your mission, search the galaxy and find our cadets.
Use the graphics library provided by your author to build a game to allow
the Enterprise to boldly go where no one has gone before. To seek out new life
forms and most of all rescue our Cadets from the evil forces.
Build a game
that:
- displays the Enterprise and allows it to cruise the galaxy (in all directions)
using the keyboard,
- arrow keys = left, right, up and down
- f = faster, s = slower
- has some kind of randomly flying enemy 'objects' that traverse the
star field, these objects uncloak (appear) at random locations on the borders
of the screen,
- ememy objects try to crash into the enterprise, they move toward the
enterprise, unless they are taking evasive action (they fly away from
a laser blast)
- has the ability to fire lasers
- spacebar fires the standard laser, it travels 1/4
of the screen before disapating, (uses 0 power units)
- d = full-power laser shot, travels 1/2 the screen,
(uses 3 power units)
- laser shots kill an inrange enemy even if it is currently off screen
- when you kill an enemy, you get 20 additional power units
has Help ('h' key) which, pauses the game and gives a list
of the keys that operate the game,
- has speed control, the ability for the enterprise to speedup or
slow down
- f = faster, s = slower
- the faster you go the more power units you consume, when you are out
of power you can pivot but you can't move
- has the ability to control the rate that
new enemy objects appear on the screen
- r = faster, R = slower
- enemy objects are created somewhere in the galaly at a rate of 1
per X frames
- has scoring:
- when you kill an enemy object, you get 10
points
- if an enemy object crashes into you, you lose 50 points
- if your score goes negative the game is over
- current status (power, time, # of enemy etc.) is displayed
in the titlebar.
- has levels of play:
- level 1 plays the game in manual mode, allowing the player to control
the speed and rate, the level is won when the player reaches a score of
100 or is lost when the score goes negative
- level 2 plays the game but the r/R keys do noting. Rate
keeps increasing as time goes by. The game continues until the invaders
inevitably
win (negative score). The object of the game is to get to the second round
and live as long as possible.
- At the end of the game, a list of the top
ten player's names and their times appear.
You may add additional features as you choose, but they must be documented
on the help screen.