Game Prototype – Platformer

Link to my game Frog Vs Raccoons: here

The final prototype I had to make was a Platformer game, in which I had to use a tile palette in Unity to create a level out of my own pixel art tiles. as well as this I needed to add hazards like enemies and spikes.

Deciding a Theme

I decided that I wanted to make some animal character sprites so I built my game idea around this. I picked two animals at random and decided on frogs and raccoons.

Sprites

This is the sprite for my main player, which has two box colliders, one that kills the enemies and one that kills the player.

This enemy sprite kills the player on impact and acts as an obstacle throughout the game.

These two tiles are what I used to create the level itself by using the brush tool within the tile palette.

These spike sprites are another obstacle for the player.

This script for Camera Class makes the camera follow the player’s movements throughout the level by following the game object tagged player.

This Kill Enemy script makes the enemy bounce off the screen if the player jumps on top of it to kill it. I have also integrated FMOD for a death sound effect as well.

The Spike Class functions in a similar way to the Kill Enemy script, but instead of destroying an enemy, it kills the player and plays the associated sound effect.

The Sound Manager acts as previous ones and plays the background music and stops it from looping after death respawn.

This is the same script I have used in previous prototypes to make exiting the game easy.

This Player Movement Class gives the player simple movement but also activates the appropriate animation depending on which direction the player is walking.

This script for restart makes the player respawn at the beginning of the level after death.

This Jump Class script allows the player to perform a regular jump, as well as a double jump and limits the number of these so the physics are realistic for the game.

Leave a comment

Your email address will not be published. Required fields are marked *