O'Reilly logo

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

Building Games with Scratch 2.0

Video Description

Develop fun and engaging games using Scratch 2.0

About This Video

  • Design, build, and publish your games using Scratch and share them with your friends

  • Create games such as Ball-and-paddle “Breakout” clone, Catch-and-avoid, Escape-the-room (point-and-click adventure), Tower defense, Maze arcade, while learning programming basics

  • Create cool special effects such as controlling a game by waving your hands (using a webcam) or animating a face that lip-synchs your words

  • Learn to create custom animations for your game, and avoid bad coding practices.

  • In Detail

    Scratch 2.0 has one of the most user-friendly interfaces that allow you to create games and interactive animations easily. It is a good starting point for non-programmers who wish to learn basics of programming games, and quickly create and publish fun and interactive games.

    This video course shows you how to design and build several short games, then code and debug them, and finally publish and share them with the world. This course is a beginner’s guide to learning the basics of computer science and creating your own engaging and interactive games.

    You will learn how to make a character respond to input from your computer keyboard, and how to get onscreen objects to interact with each other in increasingly complex ways. Along the way, you will create more visual variety, more interactive possibilities, and have more fun.

    Following on from this, you’ll learn how to create a simple catch-and-avoid game, a ball-and-paddle “Breakout” game, a base-defence game, a point-and-click “Escape The Room” adventure game, and a maze game. You’ll learn to upload or create the artwork, how to control an onscreen object with a mouse, keyboard, or even by waving your hand in front of a webcam. We’ll also cover how to create some animation tricks, such as making a falling ball squish when it hits the floor, and making a character’s mouth move in synch with your own voice. Along the way, you’ll learn important computer science principles, such as if-then loops, iterative design, object-oriented programming, and debugging strategies.

    Whether you are looking for a gentle introduction to computer science, a first step towards learning about the profession of computer programming, or you just want to have fun making games, this video course is here to help you at every step of the way.

    Table of Contents

    1. Chapter 1: Scratch 2.0 - What It Is
      1. Getting Started: What It Is 00:06:11
      2. Animating and Controlling a Sprite with the Keyboard 00:11:39
      3. Adding Treasures to Collect and Threats to Avoid 00:09:36
      4. Publishing Your Work on the Scratch Website 00:01:14
    2. Chapter 2: Breakout
      1. Creating a Bouncing Ball 00:05:06
      2. Implementing Ball Interactions with Paddle 00:05:16
      3. A Brick That Vanishes When Hit by the Ball 00:04:54
      4. Creating a Wall of Bricks with Cloning 00:07:59
      5. Adding a "Win Game" State 00:01:51
    3. Chapter 3: Catch and Avoid
      1. Controlling a Character with the Keyboard 00:04:33
      2. Adding Falling Treasures and Threats 00:08:47
      3. Implementing the Score and Health 00:02:40
      4. Reskinning Sprites 00:02:20
      5. Controlling a Character with the Mouse and Webcam 00:04:04
    4. Chapter 4: Escape the Room
      1. Creating Multiple Backdrops 00:01:56
      2. Creating a Clickable Hotspot 00:07:34
      3. Linking Objects and Events to Create a Puzzle 00:05:09
      4. Creating an Inventory and Winning Game State 00:02:47
      5. Resetting All Objects for a New Level 00:03:25
    5. Chapter 5: Base Defense Game
      1. Creating a Home Base and Projectiles 00:06:56
      2. Creating Inbound Targets 00:07:39
      3. Keeping Score and Ending the Game 00:03:19
      4. Increasing the Difficulty 00:03:31
      5. Reskinning the Sprites for Visual Variety 00:08:31
    6. Chapter 6: Maze Game - Building, Polishing, and Publishing with Scratch 2.0
      1. Creating Artwork 00:05:16
      2. Coding the Gameplay for Level 1 00:07:11
      3. Creating a Deathwall for Level 2 00:09:38
      4. Creating a Deathsquiggle Threat for Level 3 and 4 00:08:57
      5. Polishing and Publishing on the Scratch Website 00:04:54