Meeting your Game Manager
The Game Manager sprite is the brain of the game. It manages game logic including scoring, level completion, winning, and losing.
When the user clicks on the green flag, Game Manager displays the start page with instructions and a start button. The game starts when the start button is clicked. After the game starts, Game Manager processes the broadcast messages sent from other sprites and decides on the following aspects:
The time to move up a level
When the game is won
When the game is over
At the beginning of each new level, Game Manager engages the user as well as the other sprites in the game. To users, it displays the level-up screen that scrolls up, giving the users time to wiggle their fingers before the next game. To the other sprites, it notifies that this level is over and the sprites then wrap up the current level and prepare for the next one.
Prepare for lift off
Instead of creating the Game Manager scripts from scratch, we will use the complete Game Manager...