Planning ahead – what else does our game need?
With the gameplay mechanics working, we need to consider what our players will expect to happen when they have completed the task of collecting all the fruits. As mentioned in the introduction to this chapter, our plan is to create additional, more difficult levels for the player to complete!
We also need to consider what will happen when the game is over; either when the player has succeeded in collecting all the fruits, or when the player has failed to collect the fruits in the allocated time. The solution that we'll be implementing in this game is to display a message to advise the player of their success or failure, and to provide options for the player to either return to the main menu, or if the task was completed successfully, continue to the next level within the game.
We'll be creating the introduction screen and additional levels in Chapter 7, Polishing the Game, but first, we need to implement a structure so that the game can keep track...