Scratch 2.0 Game Development HOTSHOT

Scratch 2.0 Game Development HOTSHOT

Sergio van Pul

Language: English

Pages: 330

ISBN: 1849697566

Format: PDF / Kindle (mobi) / ePub

10 engaging projects that will teach you how to build exciting games with the easytouse Scratch 2.0 environment

About This Book

  • Discover how to make the most of the new Scratch 2.0 interface
  • Understand how video games work under the hood
  • Make your projects come to life, using practical programming principles
  • Learn how to plan and build your own interactive projects

Who This Book Is For

If you are a new, or current Scratch user and would like to improve your understanding of the new Scratch 2.0 interface, and learn how to make video games, this book is ideal for you. Each project is explained in-depth from start to finish, so everyone can follow along, even if you don't have much previous experience with the software. If you want to become a video game designer, this book is an easy- to- use and friendly guide about the world of interactive media. It will teach, challenge, and inspire you to create great interactive projects.

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

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.



















computer if you're looking for an image on your own. 2. Start a new Scratch project and remove the cat sprite. 3. Click on the folder icon underneath the Stage thumbnail. This will open the file browser of your computer. 4. Navigate to the folder where you saved your map image. 5. Click on the image and select Open. This image will now be loaded as a backdrop. The image will be shown in the Backdrops editor in its actual size or as big as possible if it's bigger than the stage area. Your

the lessons learned here and apply them to create games with tool sets other than Scratch. We hope you enjoy working on the projects in this book. May they inspire you to create even better games! What this book covers Project 1, Blowing Things Up!, builds a simple game involving a cannon and some targets. You will learn about placing sprites, building scripts, and setting the game in motion. Project 2, Beating Back the Horde, teaches you how to create multiple enemies and how to move them along

screen. From there, we will use the cloning method to generate waves of starfish moving left towards the player character by following these steps: 1. Start with a when clicked block. 2. Let's click on hide to make the sprite invisible when not needed. 3. Also, enter the value 30 in the set size to ()% block to make it smaller. It should be about the same size as the diver. 4. Add a forever loop to hold the clone generation script. We will make the sprite jump to a random

Then, we set the scrolling speed to -2 in the set to () block. We use a negative value because we want the background (and all other objects still to come) to scroll left. The following screenshot shows the final script: That was all we needed to add to make the script work. Let's test it again. We'll see that the background sliding towards the left until it is out of view. Then it comes sliding in from the right again. 151 Shoot 'Em Up The only thing left to do is copy the

upgraded spear on the boss. 4. Then we use broadcast to start the boss phase immediately. 176 Project 6 The final script will look like the following screenshot: This is all that is absolutely necessary for this script. As you can see, the timer is still running and will eventually reach 90. This would cause the boss message to be called again. We don't want that as it could cause strange results. So, we will take a few precautions to prevent the timer from ever reaching 90. Stopping

Download sample