Shangool, Mangool and Hab-ve Angoor is a 3D platformer based on an Iranian fairytale, creating a retelling of the story for the English speaking world in a new medium and incorporating elements from different versions.
I programmed the mechanics, researched different versions of the story, and built the level using models from the Unity asset store.
As Hab-ve Angoor is very small, I added objects around the house to aid player movement. Red mushrooms are bouncers that launch the player upwards by applying upwards force for a short amount of time.
Originally I was going to add a similar type of bouncer that pushed the player forward. Once I decided to use mushrooms, I changed this to a bumper that launches the player in the opposite direction.
There also two vehicles to help the player that are inspired by the TV show 'Grandpa in my Pocket'. Cannons are placed throughout the level that launch the player forwards. When the player enters the cannon, there is a short delay where the cannon camera is active to show the cannon is about to launch, and then force is applied to the player.
There is a plane that the player can use to fly around. When the player enters the plane, the player object and player camera is disabled, and the plane camera is enabled.
If the plane collides with an object, the player is re-enabled and moved to the position of the crash, to simulate the goat being inside the plane.
In the 'hub' level, you play as a detective investigating what happened. There are multiple objects that can start each level when inspected, which are taken from the different versions of the story. When each level is started, the other objects that trigger that level are no longer able to be inspected.
One of the levels features a wolf that runs into the house and eats the two older goats. To make this I placed several points around the house and set the goats to randomly run to a point, then choose a new point once they have reached it. While the first goat is active, the wolf looks at it and moves forward until it catches the goat. It then switches to the second goat, and then chases the player once it has caught both.
The objects in the house have a rigidbody component which is normally kinematic, but is not in the wolf level. If the wolf touches any of these objects, it launches them forwards and creates a mess around house.