Categories
Game Dev Unity Unity Scripting

Medieval Frogger

Play It Here

This project was a small game I worked on for a subject of my Bachelor course. It is a 2D frogger-style game with my own medieval theme overlaid on top!

All the coding and most sound was done by me. the art assets and music were found on opengameart.org

The goal of my game was to get 5 of your frog knights back to the safety of the castle before nightfall. players had to get the frogs into the three doors and on top of the two towers.

For the menus of this game I used the Unity Canvas to have multiple windows which would pause the game and switch between by enabling and disabling their gameobjects. I used this method to produce a number of screens

As this was my first game I was making from start to finish I struggled with a lot! the vehicle spawning system drove me mad for a day or two (looking back now its rather simple!). in the video you can see that I only have a set amount of assets which are respawned at their starting positions once they translated to the other side of the screen.

Vehicles and platforms spawn back on the other side of the map to pass through again

For the movement, and because this was a frogger-style game, I used a grid based system in which an anchor point controlled where the player sprite would move. when players pressed in a direction, the “MovePoint” would first move 1 unit, then the player sprite would follow.

orange Move-point moves, sprite of frog follows where it leads along a grid

When the player reaches the goals, their current sprite is reset to the beginning position and one of the frog sprites at the beginning of the level is deactivated. this gives the illusion that the player is controlling multiple frogs, when in reality, it is the same game object.

Hitting the goal, with backend view
Getting to the goal, resetting to remaining frogs to get to safety

All the animations were done through sprite sheets and were surprisingly easy and enjoyable to work with!

The thing I was most proud of for this project was my Audio Manager script, rather simple and elegant was how I saw it at its construction.
I had a reference to every sound which would play and 3 functions; one to play a selected audio at a particular volume, each time the sound was played I tweaked the pitch to give some variation and avoid repetitive sounds, one to start the overworld music and one to stop it.

Please give it a try and let me know what you think!
Its simple as hell but we all start somewhere (ง°ل͜°)ง

Download Game on my itch.io !

or

Play with the source code from my Github!