Trump

Trump

Tuesday, June 6, 2017

Scratch Game

Link to Scratch Game

I enjoy playing arcade-style games, so I decided to re-create the classic game of Pac-man. At first, I wanted the ghosts to control themselves and, when they encounter a wall, turn accordingly to avoid it. Unfortunately, this proved to be very difficult, as the ghosts would sometimes keep going or would just turn into another wall, or might get stuck in the wall. I ended up changing the ghosts slightly by putting them on a set course that they would repeat over and over again.

I tested the game repeatedly by playing it and testing individual pieces of code. I tested the ghost's paths a lot so I could make their movement speed correct. After I edited the ghosts from my previous attempt, the game was working as intended.

I'm most proud of my pac-man sprite, and how its mouth moves and look just like the original pac-man. If I could go back and add things, I would make a larger course, as well as make multiple levels with increasing difficulty (perhaps changing the speed of the ghosts).