Run Barry, Run

Hunter Maul
2 min readMay 6, 2021

Here is my final game! Initially, this game was supposed to be a side-scrolling platformer, but when I was implementing the logic for the platforms I was running in to quite a few issues. So, I decided to stick to what I know and make a cool little infinite runner and focus a little bit more heavily on the art side. What my background code does is layer the pixel art that I made for the background and move the layers at varying speeds to create a parallax effect. On top of that I made a character class and a lava class. The character class draws the animated frames of my character and applies gravity to him, when the “w” key is pressed a stronger ‘jumpForce’ is applied in the opposite direction causing him to jump. The lava class basically just spawns random lava pits that the character has to jump over. If he hits a lava pit, he dies. The score increases every time Barry clears a pit and resets each game. Outside of the texture for the ground, all of the art and sounds is original! The most interesting thing that I learned throughout the process of making this game is how to implement some physics into my games. Hope you guys like it!

reference photos

--

--