RETRO RUNNER
CODE FRAGMENTS
Each "_is" variable is a Boolean that is either true or false, depending on whether the player is colliding with a specific layer, i.e. ice, normal ground, hanging bars, thick snow etc.
This segment of code first checks to make sure that the player has touched the correct part of the screen and that the pause menu is not open. It then makes sure that the player is in a viable place to jump. If he/she is, a timer is set to determine the amount of time in which the player can jump in the air for. This enable the player to make jump heights bigger or smaller depending on their situation.
Each "_is" variable is a Boolean that is either true or false, depending on whether the player is colliding with a specific layer, i.e. ice, normal ground, hanging bars, thick snow etc.
GAME DESCRIPTION
Retro Runner is an auto-runner game currently being developed in Unity for Android as a side project in my spare time. What's different about Retro Runner is that whereas most runners just consist of jumping over gaps, this one contains unique mechanics, like the ability to hang from platforms, climb, and even pause in selected areas so the player can precisely line up their jumps to reach moving platforms. What else is unique about this game is that for my sprites, I have decided to only implement colours from the Nintendo Entertainment System (1983) to give to a real retro/nostalgic feel.