|
Maze3 - PacMan |
| In addition to the specs for the Maze2 project, extend that project by creating a picture box that represents a ghost. Driven by a Timer object, the ghost must chase after the player as he/she moves around the maze. If the ghost collides with the player, an appropriate sound clip must play and the game must reset with the player and ghost returning to their original positions. When the game initially loads, the computer's voice should greet the player with a suitable greeting message. Also, add a passageway to one side of the maze that allows the player to wrap around the screen going off one side and coming in on another side. Give the player an updated "Time Left" message in the corner of the screen that gives him/her 60 seconds to complete the maze. If the time expires, reset the player and the ghost to their original positions and reset the game timer at 60 seconds. The should immediately count down again for the player's second attempt through the maze. For extra credit, make the collision detection between the player and ghost work if the player and ghost barely touch each other rather than if the ghost is completely inside the player. Before you begin this project, copy and paste your whole Maze2 project folder and rename the outer folder from Maze2 to Maze3. (The project itself insider of the outer folder will still be named Maze2.) Preconditions:
Your program must follow standard Windows conventions as well as our school's Visual Basic Coding Standards. Staple your printouts in the following order:
Objects Pseudocode for tmrGhost_Tick method: Code for moving the ghost to catch the player: ' ghost moves left to catch the player ' ghost moves right to catch the player ' ghost moves up to catch the player ' ghost moves down to catch the player Code for collision detection: ' collision detection between ghost and player ' reset the player
|