top of page

Box Avoid Challenge

In our first game, we would create an obstacle avoidance game, similar to "Temple Run". Our Player, a cube, would be automatically propelled down a runway, using Unity's Physics engine and a Forward Force on the Z axis. The Player has control of avoiding up coming obstacles, by using the "A" key to go Left, and the "D" key to go Right.

​

About the Game
Obstacles were Prefabs - Tagged Obstacle

Player Collision would cause Player Movement to Stop.
A Menu would start us at Scene 1, by pressing a Button.
An Animation title screen would play at the Goal Line being Triggered.
The Animation would Play until an Event, at the 2 second mark would Trigger the Next Level.
The Final Scene would end with Credits, and a Button to take us back to Level 1.
Score was kept with the measure of how far the Player was able to successfully travel down the runway.
A Camera was scripted to follow the action of the Player.
A Game Manager was used to monitor all aspects of the game.

8-10 scripts were written in C#, using Visual Studio, to control gameplay action.

Images of the Project

2022-09-27_10-22-32.png

The Player Collision Script for when the player collides with an enemy / out of bounds. It helps with playing sfx.

bxac1.png

Small snippet of the Game Manager Script; in charge of completing level UI and for restarting if the player has fallen off or if it has run into an obstacle.

bxac2.png

Player Follow Script in charge for the camera to follow the player at a specific Vector3 offset.

bottom of page