How to Make Video Games 21

Ms Pacman CloneIn this part of my Video Games Tutorial I show how to make the hardest part in Pac-Man, which is the Ghost AI Algorithm. We’ll Create the Ghost AI so Ghosts Circle Around the Maze on their own, They’ll React to Collisions with Pivot Points and They’ll Always Remain Perfectly Centered. We’ll also have the Ghosts Move Erratically, Use an Array to Store Game Objects, Make Ms. Pac-Man use Portals and a whole bunch more.

All the Images are Here. The code follows the video below. You can also Download all of my Unity game files so far for Pong, Space Invaders, Tetris and Mario.

If you like videos like this, consider donating $1, or simply turn off AdBlocker. Either helps a lot.

Code from the Video

Ghost.cs

MsPacman.cs

Gameboard.cs

TurningPoint.cs

SoundManager.cs

Leave a Reply

Your email address will not be published.

Google+