Cake on the run! – 3D obstacle avoiding game made in Unity

The game “Cake on the run!” is a 3D game made in Unity in which you control a person carrying on his back a cake he bought to celebrate his pet’s birthday. This game was developed in 72 hours for the Game Jam Ludum Dare 49 with the theme “unstable”.

Game Objective

Avoid obstacles and keep the cake balanced so you can deliver it to your dog.

Controls

BALANCING THE CAKE: A-D AVOID OBSTACLES: W-S JUMP: SPACE

WEBGL Build

A SHORT BREAK WITH THE LATEST NEWS

CONSIDER SUBSCRIBING!


LET'S CONTINUE WITH THE ARTICLE

Technical details about the development of this game

Next we are going to review some information about the inner workings of this game and its mechanics, first of all it is a 3D project developed with the Unity engine.

Scene Structure

This game is set up in three scenes, the first scene is the main menu which has two buttons, one to start the game and another button to close the game. By pressing the Play button we go to the game scene in which the stage and the character are set up. We go to the third and last scene when the character arrives home where his dog is waiting for him anxiously.

Character controlled by the player

The character to be controlled runs automatically with a preset speed that we can control by going forward or backward with the directional arrows or with the A-D keys, this will increase or decrease the initial speed to a certain value, the character can never go backwards, just go a little slower or faster, this movement serves mainly to balance the cake.

The character can also move to his left and right, this is achieved with the up and down directional arrows or with the W-S keys, this movement allows the character to avoid obstacles.

The unstable cake

The cake and the support tray were made in Blender and consist of separate pieces that are attached to the same skeleton, constantly playing an animation that makes the pieces of the cake jump as the character moves but also controls the angle of the bones of the cake to produce the tilt to one side or the other, The tilt of the cake responds to the character’s actions, that is, if the character accelerates the tendency of the cake is to tilt backwards, if the character goes slower the cake tends to tilt forward, in addition to this every now and then random events occur that take the cake out of its stable state and force the player to take action on it.

Music

The music for this game was composed by one of the team members. You can visit the Trepen el Paredón channel to see more of his work.

Obstáculos del mundo

The main obstacles are construction fences, trees and cars, which are static elements; later on, pits are added in which, if the character falls into, the game is over. In addition, there are some cheerful workers who carry a piece of glass, these constitute a mobile obstacle.

The stage

The 3D models of the scenery are models that we made using Blender, the scenery materials have no textures, they only have applied flat colors. The character was modeled from a reference image of a low poly character that also had the position of the polygons and the topology.

Secured By miniOrange