In the previous chapter, we created basic gameplay and made sure the correct animation was triggered and the controls are in place. In this chapter, we will finish up the game play by adding a proper game loop so that there is a start, scoring, and gameover.
For the scoring, we will initially use debug to log out the health of the player and the AI. Later, we will look at Unity's Graphical User Interface (GUI) system and add a health indicator for both the player and the enemy.
Finally, we will also look at the Unity's particle system and the different parameters that we can manipulate to get the desired particle effect for the game.
This chapter includes the following topics:
- Finishing up the gameplay
- Understanding Unity GUI
- Adding GUI for health and gameover condition
- Introduction to Particle Effects
- Creating confetti Particle Effect