Final Project: A Game
Summary: Implement 2 levels (or 4 levels for graduate students)
of the old
Atari game Berzerk(wikipedia link) (See
gameplay on youtube)
Unpacking some details:
- The player starts with 3 lives
- The player can move in 4 or 8 directions (diagonals possible but not
required for undergrads)
- There should be (lets say for our purposes) 4+2*level number 'bad
guys' randomly placed in legal spots on the level.
- The bad guys have a random chance for one bad guy to shoot at the
player each second. That chance should be a function of the level
(higher levels mean more shooting)
- if there is a shot, pick a random bad guy to shoot directly at the
player.
- if the bad guy shot hits a wall it disappears
- if the bad guy shot hits the player the shot disappears and the
player loses a life
- if the player loses a life,
- make a visual and audial representation,
- remove the enemy shot (if any)
- re-spawn the player in a random unoccupied location.
- the player should be able to shoot in the direction the player last
moved.
- the player loses a life if the player runs into a wall.
- if the player managed to kill all the bad guys, the player has to
leave the map through one of the openings to move on
- if there is another level, begin the next level at that point.
- if that is the last level tell the player they have won.
- The bad guys should move (directly) toward the player from time to
time.
- bad guys that hit the wall die, the player does get points for this
- a strategy is to get the bad guys to kill themselves chasing you.
- the player score should increase everytime a bad guy dies, either from
the player shooting it or the bad guy hitting the wall.
- Have (unique) sounds for at least:
- player shooting
- bad guy shooting
- player loses a life
- bad guy dies
- player loses (loses last life) [there should be a visual cue too]
- player wins (completes 2 levels in undergrad or 4 for grads)
Have fun.