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

Mission accomplished

We learned the mechanics of scrolling in detail and also created an auto-scrolling platform to simulate the player sprite moving between them. Further more, we added the food sprites that scroll with the platform and interact with the player. Next, we added the game logic that is common to all the sprites of the Game Manager, which controls the top-level game initiation and termination, as well as level advancement. Finally, we ended with several ways to tweak the game for the desired level of difficulty.

Mission accomplished

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