Posted August 09, 2021 by CurryGeyGey
A simple game scene was implemented based on the week 4 tutorial project.
In this scene, the enemy will spawn from spawner every x seconds, the enemy spawned will find and chase player, when the enemy successful contacted with the player, the player will take 1 damage from the enemy, the enemy will die after that.
At a fixed location, a health pack will spawn every x seconds, the health pack will heal the player by 3 points when the character walks to the health pack.
When the player health dropped to 0, the game end screen pop up and ends the game.
The enemy will spawn from the spawner by every 3 seconds, then the enemy will find the closest way to chase the player by NavMesh.
The player will take damage when the enemy collides with the player, the enemy will die after damaged the player.
The health pack will spawn one for every 6 seconds, player will heal 3 HP by walk to it to pick up.
The game ends when player health drops to 0 points, end game screen will pop up.
During this task: