![]() ![]() ![]() 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. 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. 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. A consequence of Clyde's unwillingness to take part is that it's often hard to round all of the ghosts up into a single cluster which is nice to do just before eating a power pill.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. His heart doesn't seem to be in it at all. He will often turn off rather than approach you. Clyde / PokeyĬlyde is either short-sighted or stupid. For this reason, we have decided to reserve our judgement until further evidence can be obtained. These theories might have emerged as a result Inky's nickname (Bashful), the same kind of reasoning that has lead many authorities to believe erroneously that Pinky (aka Speedy) is actually faster than the other ghosts. Another unconfirmed theory about Inky is that he will often turn off if Pac-Man charges him. ![]() One theory is that Inky's behaviour depends on his proximity to Blinky almost as if he is too afraid to act on his own (like some people who never go to a cinema by themselves). There might be rhyme and reason to his behaviour, but we haven't recognised it yet. Given the same choices, he will often take different turns at different times. Inky is dangerous because he's unpredictable. They can often trap you like this so be careful of this deadly duo. This means that if Blinky and Pinky reach the opposite side of a block to where you are, they'll come at you from opposite sides of it. Pinky seems to have a tendency to go around blocks in an anticlockwise direction unlike Blinky and Clyde who seem to prefer going clockwise. Pinky, Inky and Clyde always move at the same speed relative to one another so the name Speedy is plainly misleading. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |