Book Image

Scratch 2.0 Beginner's Guide: Second Edition

By : Michael Badger
Book Image

Scratch 2.0 Beginner's Guide: Second Edition

By: Michael Badger

Overview of this book

Table of Contents (18 chapters)
Scratch 2.0 Beginner's Guide Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 6. Making an Arcade Game – Breakout (Part I)

If you spend any time with Scratch, you will encounter a Pong project. In this chapter, we're going to remix that classic arcade game to create our own version of the game Breakout. In Breakout, the player breaks through multiple layers of bricks by hitting a bouncing ball. In this chapter, we'll lay the foundation of the game while in the next chapter we'll make the game more challenging.

In this chapter, we will:

  • Upload a Pong starter project that we will customize

  • Use cloning to create exact duplicates of the sprites that can be individually controlled

  • Find and calculate the sprite direction to program the ball's direction

  • Create and use custom variables to keep score

To help you understand the idea of the game, let's get a brief introduction to Breakout.