This was a fun section - Unity’s Animation system had me scratching my head, but now I think I"m getting the hang of it!
http://gamebucket.io/game/689b5bb6-e182-401f-abf3-ecbc689a4df3
List of changes:
- Spawn the Lizard at a random spot on the game screen to be able to see the appearing animation
- Pause the game music before playing the “Scene Completed” sound
- Added a “Dieing” animation that handles the destruction of the game object after playing a nifty little animation
- Added a “HealthBar” to be able to visually detect the health of Attackers/Defenders
Some more tweaks need to be made - cactus launching 2 projectiles when spawning in attack state), an extra axe lying around on the first scene, and need to use the “Game Difficulty” slider to adjust the rate attackers spawn.