Chapter 10

Programming an Arcade Game Using Scratch

IN THIS CHAPTER

Bullet Adding sprites to your game

Bullet Drawing and naming sprites

Bullet Controlling when scripts are run

Bullet Using random numbers

Bullet Detecting when a sprite hits another sprite

Bullet Introducing variables

Bullet Making sprites move automatically

Bullet Adding scripts to the Stage

In this chapter, we show you how to use Scratch to create and play an arcade game. You get a chance to customize the game with your own graphics, but more importantly, you learn how to put a game project together so that you can invent your own games.

In this sample game, you control a flying saucer as it defends its planet from invasion. Grumpy-looking aliens zoom in from above, but ...

Get Raspberry Pi For Dummies, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.