
Blinky the red ghost moves towards the top right corner, while Pink the pink ghost moves towards the top left corner. In “Scatter” mode, the ghosts will stop chasing Pac-Man and each will move into its respective corners for a few seconds. Clyde the orange ghost is moving in a random fashion and seems to stay out of the way of Pac-Man. Inky the cyan ghost will patrol an area and is not very predictable in this mode. Pinky the pink ghost will attempt to ambush Pac-Man by trying to get in front of him and cut him off. Blinky the red ghost is very aggressive in its approach while chasing Pac-Man and will follow Pac-Man once located. Each of the four ghosts has a unique behaviour while chasing Pac-Man. In “Chase” mode, the ghosts are trying to find and capture Pac-Man.
#Pac man doodle level 256 software
This article discusses the different movements and behaviour of the ghosts in Pac-Man and how it relates to implementing Reusable Object-Oriented software also known as Design Patterns. The ghosts change mode during game play from scattering to the corners of the maze, to chasing Pac-Man and also to being frightened when Pac-Man picks up a Power-Pellet. The four ghosts, Blinky, Pinky, Inky and Clyde, each has different behaviour depending on the mode of the ghosts.

Pac-Man is being chased by four ghosts in the game whose main objective is to kill him. The player navigates Pac-Man through a maze and has to collect all the dots (Pac-Dots) in order to complete the stage. Pac-Man is an arcade game that was first release in 1980.

We will also look at how the Strategy Pattern can help with the design of the different movement behaviours.
#Pac man doodle level 256 series
The first article in the “Pac-Man Patterns” series will focus on the different behaviour each of the four ghosts have during the different modes of the game. I then decided to create a series of articles which illustrate the use of Design Patterns to implement some of the complex design issues in the game Pac-Man. I was really amazed at the complexity in the design and AI of a game that seems so simple while playing at the time. His article was about the design and AI lessons within the classic Namco game Pac-Man. The idea of using Pac-Man to illustrate the usage of Design Patterns came to me while I was reading an article about Pac-Man by Jamey Pittman.
