Preparing the game
As a game for this project, we are going to recreate the famous PAC-MAN. This is a simple game that can introduce us to some important behaviors in a game: collisions, movements, collectables, and enemies!
PAC-MAN, for those of you who don't know this game, is probably the most famous arcade game of all time. Released on 1980 and developed by Namco, it is recognized as being the longest running video game franchises from the golden age of arcade video games:
The game is quite simple: the player guides PAC-MAN through a maze, eating the dots along his path. When all the the dots are eaten, PAC-MAN is taken to the next stage. There are four threats that roam the maze trying to catch PAC-MAN. If an enemy comes in contact with PAC-MAN, PAC-MAN dies and the player loses a life, only to respawn after a brief period of time on his respawn point. Enemies can be eaten by PAC-MAN, thanks to some power-ups that are positioned around the map.
We are going to create this game in...