You are previewing Scratch 2.0 Game Development HOTSHOT.
O'Reilly logo
Scratch 2.0 Game Development HOTSHOT

Book Description

Get up to date with Scratch 2.0 and build brilliant games without having to code. Including 10 exciting projects that cover most game genres, you’ll quickly learn the sophisticated possibilities of Scratch. Have fun!

In Detail

Playing video games is fun, however, it’s even more fun to make your own! Scratch 2.0 makes that challenge a lot easier. Instead of diving into abstract and confusing code, you can build games using easy to understand logic blocks. Within minutes you can have your first game up and running.

Readers can look forward to an easily accessible and fun introduction to programming and interactive media design. Within minutes of starting the program, you will be able to see the first results of your hard work. Visual feedback comes early and often, making high-level, abstract concepts a lot easier to understand.

This book offers readers access to completely interactive projects based on well-known video game genres. You will then learn how to use standard programming principles such as operators, variables, and functions.

From a broader perspective, you will also learn how to plan and develop a game from a general idea to the finished product, creating a fun and user-friendly game. Scratch 2.0 includes many new and exciting features, which makes it possible to create more advanced games. The final results will be close to production level games. This book will not only introduce you to the Scratch 2.0 software, but also teach you about interactive media design.

What You Will Learn

  • Draw and edit game graphics
  • Construct scripts from logic blocks
  • Utilize operators and conditions to steer game actions
  • Use variables and lists to save and reuse dynamic numbers
  • Create both mouse and keyboard controls for various purposes
  • Implement natural physics effects such as collisions and gravity
  • Invent and build power-ups
  • Learn how to use some advanced math, for better looking movement patterns
  • Make interesting level designs
  • Balance the game for an enjoyable experience
  • Reuse elements to speed up the building process
  • Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

    Table of Contents

    1. Scratch 2.0 Game Development HOTSHOT
      1. Table of Contents
      2. Scratch 2.0 Game Development HOTSHOT
      3. Credits
      4. About the Authors
      5. About the Reviewers
      6. www.PacktPub.com
        1. Support files, eBooks, discount offers and more
          1. Free Access for Packt account holders
      7. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
          1. Mission briefing
            1. Why is it awesome?
            2. Your Hotshot objectives
            3. Mission checklist
          2. Task 1
            1. Prepare for lift off
            2. Engage thrusters
            3. Objective complete – mini debriefing
            4. Classified intel
        5. Reader feedback
        6. Customer support
          1. Downloading the example code
          2. Downloading the color images of this book
          3. Errata
          4. Piracy
          5. Questions
      8. 1. Blowing Things Up!
        1. Mission briefing
          1. Why is it awesome?
          2. Your Hotshot objectives
          3. Mission checklist
        2. Creating a new project
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        3. Starting scripts
          1. Engage thrusters
          2. Objective complete – mini debriefing
        4. Adding targets
          1. Engage thrusters
            1. Method 1
            2. Method 2
            3. Creating multiple targets
            4. Cannonball collisions
          2. Objective complete – mini debriefing
        5. Creating a parabolic shot
          1. Engage thrusters
          2. Objective complete – mini debriefing
        6. Creating a landscape
          1. Engage thrusters
          2. Objective complete – mini debriefing
        7. Mission accomplished
        8. Hotshot challenges
      9. 2. Beating Back the Horde
        1. Mission briefing
          1. Why is it awesome?
          2. Your Hotshot objectives
          3. Mission checklist
        2. Creating a background
          1. Engage thrusters
          2. Objective complete – mini debriefing
        3. Creating enemies
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        4. Creating cannons
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
          4. Classified intel
            1. Learning about list variables
            2. Learning about global and local variables
        5. Fighting back
          1. Engage thrusters
          2. Objective complete – mini debriefing
          3. Classified intel
        6. Increasing the horde
          1. Engage thrusters
          2. Objective complete – mini debriefing
        7. Adding a base
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        8. Limiting resources
          1. Engage thrusters
          2. Objective complete – mini debriefing
        9. Winning the game
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        10. Mission accomplished
        11. Hotshot challenges
      10. 3. Start Your Engines
        1. Mission briefing
          1. Why is it awesome?
          2. Your Hotshot objectives
          3. Mission checklist
        2. Drawing a racetrack
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        3. Creating a kart
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
          4. Classified intel
        4. Building keyboard controls
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
          4. Classified intel
        5. Using a collision mask
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        6. Dealing with collision events
          1. Engage thrusters
          2. Objective complete – mini debriefing
        7. Adding a second player
          1. Engage thrusters
          2. Objective complete – mini debriefing
          3. Classified intel
        8. Finishing the game
          1. Engage thrusters
          2. Objective complete – mini debriefing
          3. Classified intel
        9. Mission accomplished
        10. Hotshot challenges
      11. 4. Space Age
        1. Mission briefing
          1. Why is it awesome?
          2. Your Hotshot objectives
          3. Mission checklist
        2. Starting with the starter project
          1. Engage thrusters
          2. Objective complete – mini debriefing
        3. Adding scripts to Spaceship
          1. Engage thrusters
            1. Horizontal movement
            2. Vertical Movement
          2. Objective complete – mini debriefing
          3. Classified intel
        4. Updating enemy sprites
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
          4. Classified intel
        5. Adding scripts to Spaceship Ammo and Enemy Ammo
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
          4. Classified intel
        6. Adding scripts to Shield and Shield Life
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
          4. Classified intel
        7. Meeting your Game Manager
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        8. Adding levels – three simple steps
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
          4. Classified intel
        9. Mission accomplished
        10. Hotshot challenges
      12. 5. Shoot 'Em Up
        1. Mission briefing
          1. Why is it awesome?
          2. Your Hotshot objectives
          3. Mission checklist
        2. Creating a player character
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
          4. Classified intel
        3. Creating an enemy
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        4. Adding enemy patterns
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        5. Shooting those baddies!
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        6. Creating background images
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        7. Using parallax scrolling to simulate depth
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
          4. Classified intel
        8. Adding scores and power-ups
          1. Engage thrusters
          2. Objective complete – mini debriefing
          3. Classified intel
        9. Tweaking and balancing
          1. Engage thrusters
          2. Objective complete – mini debriefing
        10. Mission accomplished
        11. Hotshot challenges
      13. 6. Building a Worthy Boss
        1. Mission briefing
          1. Why is it awesome?
          2. Your Hotshot objectives
          3. Mission checklist
        2. Sending a message
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        3. Adding a test script
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        4. Creating the boss
          1. Engage thrusters
          2. Objective complete – mini debriefing
        5. Creating attack pattern 1
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        6. Creating attack pattern 2
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        7. Creating attack pattern 3
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        8. Making the boss more impressive
          1. Engage thrusters
          2. Objective complete – mini debriefing
          3. Classified intel
        9. Defeating the boss
          1. Engage thrusters
          2. Objective complete – mini debriefing
        10. Mission accomplished
        11. Hotshot challenges
      14. 7. Creating a Level Editor
        1. Mission briefing
          1. Why is it awesome?
          2. Your Hotshot objectives
          3. Mission checklist
        2. Planning the level map
          1. Engage thrusters
          2. Objective complete – mini debriefing
        3. Drawing the level tiles
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
          4. Classified intel
        4. Preparing the tiles in Scratch
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        5. Creating a level generator
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
          4. Classified intel
        6. Creating a character
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        7. Creating a goal
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        8. Adding a bomb item
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        9. Adding the bomb effects
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        10. Mission accomplished
        11. Hotshot challenge
      15. 8. Dungeon Crawl
        1. Mission briefing
          1. Why is it awesome?
          2. Your Hotshot objectives
          3. Mission checklist
        2. Adding a knight
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        3. Adding a ghost
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        4. Creating a sword
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        5. Creating a bow and arrow
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        6. Tying up loose ends
          1. Engage thrusters
          2. Objective complete – mini debriefing
        7. Mission accomplished
        8. Hotshot challenges
      16. 9. Hunger Run
        1. Mission briefing
          1. Why is it awesome?
          2. Your Hotshot objectives
        2. Understanding scrolling
          1. Engage thrusters
          2. Objective Complete – mini debriefing
        3. Adding scripts to the brick sprite
          1. Engage thrusters
          2. Objective complete – mini debriefing
        4. Adding scripts to the food sprite
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        5. Adding scripts to the player sprite
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        6. Adding scripts to the Game Manager sprite
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        7. Tweaking the game
          1. Prepare for lift off
          2. Engage thrusters
            1. Tweaking the number of grids in the game
            2. Tweaking bad food's appearance time
            3. Tweaking the scrolling speed
            4. Tweaking the movement of the player
            5. Tweaking the bad food ratio
          3. Objective complete – mini debriefing
        8. Mission accomplished
        9. Hotshot challenges
      17. 10. Sprites with Characters
        1. Mission briefing
          1. Why is it awesome?
          2. Your Hotshot objectives
        2. Building the robot wireframe
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        3. Coloring it metallic
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        4. Performing final adjustments
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        5. Animating
          1. Prepare for lift off
          2. Engage thrusters
          3. Objective complete – mini debriefing
        6. Parting with a few tips
          1. Engage thrusters
          2. Objective complete – mini debriefing
        7. Mission accomplished
        8. Hotshot challenges
      18. A. The New Scratch Interface
        1. Mission briefing
          1. Why is it awesome?
          2. Your Hotshot objectives
          3. Mission checklist
        2. Website overview
          1. Engage thrusters
          2. Objective complete – mini debriefing
        3. Creating an account and logging in
          1. Engage thrusters
          2. Objective complete – mini debriefing
        4. The Scratch editor layout
          1. Engage thrusters
          2. Objective complete – mini debriefing
        5. Creating and importing sprites
          1. Engage thrusters
          2. Objective complete – mini debriefing
        6. New script block categories
          1. Engage thrusters
          2. Objective complete – mini debriefing
        7. Saving and loading projects
          1. Engage thrusters
          2. Objective complete – mini debriefing
        8. Sharing the backpack feature
          1. Engage thrusters
          2. Objective complete – mini debriefing
        9. Some benefits and drawbacks of the new Scratch interface
          1. Engage thrusters
          2. Objective complete – mini debriefing
      19. Index