https://lwmmg.itch.io/hamsterjump-adventure


My fourth prototype is a side scrolling parkour game, I went for a pixel art or 16-bit style and stuck with the hamster and rat theme that I went for previously, however I added a second enemy type as I felt it added more variety to the game, it is a slime that works the same as the rat but adds some variety, I added some brick blocks similar to the Mario games as they were a way for me to add jumps into the game.
in this game I used the same horizontal movement as the space invaders game but I also added jumping, this works by using an empty object with a collider do tell if it is interacting with something tagged as ground an if it does that the player can jump and cannot if the player is not touching the ground, there is a double jump that works by allowing the player to jump one more time in the air, this is done by allowing the player a chosen number of air jumps and in the air the player can jump again for extra height if the player has not already, if the player has already they are not allowed until they touch the ground to reset this.
the enemies in this game are defeated by the player “stomping” on them, this is done by detecting if the enemy has collided with the ground check object and if they collide then the enemy’s collider is disabled so they can fall through the floor and cannot hurt the player anymore.
When the player defeats an enemy the player is given vertical momentum so that it looks like they bounce off the enemy whenever they defeat one.
The player gets destroyed if the enemy hits the player without hitting the ground check object, this loads the Gameover screen in which the player can retry.
I also added 3 different spikes which act the same but are different colours and loads the Gameover scene if the player hits it, these are done with tiles so that they can be placed wherever on the grid and they are an obstacle for the player to avoid that does not move.
the map of this game was created using the tile feature as it is made using random blocks of an assigned group, I created 4 grass textures, 8 dirt textures and 2 brick textures, this creates a map that is not the same texture repeating and boring.
In the background there is clouds that I created and the player cannot interact with them, there is 8 cloud textures and they can combine to make different shapes and larger clouds.
In this game I added a flag pole to the end and when the player walks into it it plays the victory screen.
This game has background music that plays when during the main game scene and loops, this is done using fmod.
