Meet Justin K.! He works with instructor Zack as part of Game-U’s New Jersey Accelerate program. Justin’s all about 2D when it comes to games, so he and Zack spent time in Clickteam Fusion, a 2D game and app designer for the web, to develop a Ms. Pac-Man project. See how they did it!
In the game, Justin’s Ms. Pac-Man-inspired player starts on stacks of bubbles (pellets) that cover the lower portion of the screen. But, as the game progresses, lava “rises” above the surface and sends Ms. Pac-Man racing for the pellets that Justin coded to stack higher and higher. The player’s challenge is to escape the lava by hopping from pellet to pellet, avoiding the lava, while climbing to the level of the win threshold.
To make his game functional, Justin needed to do some programming. He used the game’s start function to trigger his game controller (the code behind his game), to follow instructions to continuously remove the bottom layer of pellets from the game screen at set intervals of time. He coded the other pellets to “drop” to take the place of the destroyed ones, making it appear as though the lava is slowly rising and engulfing the pellets! That’s a problem for Ms. Pac-Man, but Justin also programmed the game controller to randomly spawn new pellets one layer at a time, so that she can stay out of the lava’s reach. Once she reaches the win threshold, the win screen kicks in and the sure-footed Ms. Pac-Man can enjoy her victory!
Cool game, Justin! You invested a lot of effort into your code, figuring out the logic that drives your game’s mechanics. Thanks for sharing Ms. Pac-Man with us! We’re looking forward to see what else you learn as you explore the world of game design. Keep us posted!