The GhostBehavior class is an abstract class that is extended by all of the ghost states, and holds some basic enable/disable methods.The Ghost class is attached to each Ghost, and holds a reference to all of its attached states as well as the ability to reset & handle collisions with Pac-Man.The GameManager class controls the state of the game, such as setting new rounds, updating UI, playing audio, etc.The Fruit class is attached to each in-game fruit object, and handles the despawning of the object as well as awarding Pac-Man with points on collision.The ClydeTarget class controls the position of Clyde's (Orange Ghost) target position, as well as the visibility of it.The BlinkyTarget class controls the position of Blinky's (Red Ghost) target position, as well as the visibility of it.The AnimatedSprite class handles the cycling of sprites on a gameobject's SpriteRenderer component, giving the appearance of animation.The AnimatedImage class handles the cycling of sprites on a gameobject's Image component, giving the appearance of animation.CodeĪ brief description of all of the classes is as follows: In order to play this version of Pac-Man, follow the link to a in-browser WebGL build (No download required!). Video Demo ._.Pac-Man.-.4 Test The Project! To aid Pac-Man, there are power pellets in each of the 4 corners of the maze that will grant him the ability to eat ghosts for a limited period of time. Each of the Ghosts have a unique AI behavior, causing them to behave differently when chasing Pac-Man. The goal of the game is to eat all of the dots in the maze, which will allow the player to move onto the next level. Pac-Man consists of a maze structure, in which four colored ghosts - Blinky (red), Pinky (pink), Inky (cyan), and Clyde (orange) - pursue him. This project is a recreation of the classic 1980 arcade game known as Pac-Man, with over $14 billion generated in revenue! This solo project was developed in Unity using C# as part of my minigames series where I utilize various resources to remake simple games in order to further my learning as well as to have fun!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |