In my last two tutorials we created a Fruit Ninja game and added some content to it. In this last tutorial, we will add a new game mode. This will imply in adding a title screen, refactoring part of our code and adding some extra content. I will cover the following content in this tutorial:
- Adding a custom font for all the texts being shown
- Adding a new game mode called Time Attack. In this mode, the player must cut as many fruits as possible before the time runs out
- Refactoring the code for our states, to reuse between different states
- Adding a title screen, where the player can choose between the two game modes
- Adding two cuttables prefabs for the Time Attack mode. The first one is a clock, which increases the remaining time when cut, and the second one is a time bomb, which reduces the remaining time when cut