Zapping Ghosts
In this project you get to zap ghosts with a Ghost Blaster. They are invisible
until they've been zapped. You can position the Ghost Blaster using the left
and right arrow keys and you can produce a zap by pressing the space bar.
ASSIGNMENT:
Make the following alterations to the project:
- Orient the Ghost Blaster so that it zaps sideways, either left to right
or right to left.
- Reduce the number of ghosts to nine and line them up vertically instead
of horizontally along the edge opposite the Ghost Blaster.
- Change the background to accommodate these changes.
- Here's the tricky part: If a ghost is visible a zap should make the
ghost disappear and if a ghost is invisible a zap should make the ghost
become visible.
|