Activity 5:
Group: John Lloyd B. Galvante, John Christian Caraga
This is the presentation of how we created the activity 5, it was made using Unity 2D, the game mechanics is simple.
1. Destroy the tomato (poison tomato)
2. Add life (Health lemon)
The goal of the game is to reach finish line without losing all the health bar. In order to win you need to pass the obstacle.
Overall:
When the player has reached the red line, the game will pause itself.
For the components:
Overall:
Script:
How to gain Life? and how to loss life?
Script for the skull (tomato), lemon (life)
Lemon:
How to destroy the enemy for being touch by the player?
Scripts:
When it touch the object the object will be destroyed.
How to pause the game when you pass the level?
Finish Line Script: