Question: Using processing; Your task in this assignment is to create a Processing program that implements a PacMan game. You will extend a solution to Assignment

Using processing; Your task in this assignment is to create a Processing program that implements a PacMan game. You will extend a solution to Assignment 1 to add:
Pellets
Ghosts
A Score
A way to lose the game
PacMan must move left to right across the screen. Upon reaching the right hand side, they must re-appear on the left-hand side (and vice-versa). PacMan should start the animation in the center of a black 800 by 200 pixel window. PacMan must move along a track made from two blue lines 10 pixels in width. PacMan must swap directions when the space bar is pressed and must have a mouth animation that approximates the classic PacMan sprite.
Spread out in a line are pellets which PacMan can eat. Once a pellet is eaten the score goes up by one. The score is shown in the top left of the window.
One ghost is present in the play area. The ghost moves left or right and swaps direction randomly. The Ghost's starting location is also chosen randomly. The ghost moves slightly faster than PacMan. If PacMan hits the ghost, the game is lost and stops.
In particular locations are fruits. If PacMan eats a fruit, the ghost becomes harmless for a period of time. If PacMan hits a ghost while it is harmless, nothing happens,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!