O'Reilly logo

Scratch 2.0 Game Development HOTSHOT by Sergio van Pul, Jessica Chiang

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required