Book Image

Building Games with Scratch 2.0 [Video]

By : Dennis G Jerz
Book Image

Building Games with Scratch 2.0 [Video]

By: Dennis G Jerz

Overview of this book

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 (6 chapters)
Chapter 4
Escape the Room
Content Locked
Section 4
Creating an Inventory and a Winning Game State
We've added a locked door puzzle that works. But so far, we've only used the word “key” in the text messages that the player reads. Let's make a key object, so the player gets some visual feedback. - Create some visual feedback to hint the player that a new action is available. We'll import the “key” object from the library. - Code the key to display it on-screen when it's in the player's inventory - Make the key disappear after it's been used, and print a victory message