We use cookies to provide essential features and services. By using our website you agree to our use of cookies .

×

Warehouse Stock Clearance Sale

Grab a bargain today!


Designing Digital Games
By

Rating

Product Description
Product Details

Table of Contents

Introduction: ALL ABOUT SCRATCH 2


About This Book 3


Icons Used in This Book 3


Access Scratch on Your Computer 4


Create online account 4


Use Scratch offline 5


Project 1: Design a Classic Videogame 7


Create a New Project 7


Change the Background Color 8


Add a Bouncing Ball 9


Change the ball color 10


Make the ball move 10


Make blocks repeat 11


Bounce off edges 12


Change the bounce angle 12


Set the ball starting position and size 13


Add the Paddles 14


Move paddle with the keyboard 15


Make the Ball Bounce Off the Paddle 17


Add a Second Player 18


Update the Player Left code blocks 19


Update the ball code 19


Make the bounce more random 20


Keep Track of Player Scores 21


Create score variables 21


Increase the score 22


Reset scores when the game starts 24


Check for the Winning Score 24


Add an end-of-game code 25


Project 2: Super Snake 28


Create a New Project 28


Use Gradient for Background 29


Construct Your Snake 30


Select a sprite costume 31


Create a snake body 31


Sculpt the snake's head 32


Set the Snake in Motion 32


Make the sprite move forward 33


Add turning blocks 33


Add Body to the Snake 34


Create body cloning loop 34


Make clones different 35


Add Food for the Snake 38


Create food sprite 38


Randomize food location 39


Set Up Game Collisions 40


Check for snake and snackcollision 40


Make the edge of the Stage deadly 41


Make the snake's body deadly 42


Delay body collision 43


Troubleshoot snake collision 44


Code Snake Growth 45


Create the snake's length variable 46


Control the snake's length with code 47


Track Player Score 48


Hide the length variable 48


Create the player's score variable 48


Project 3: A-Maze-ing Game 51


Create a New Project 51


Choose Game Characters 52


Resize characters with code 53


Copy blocks between sprites 53


Design Maze Background 54


Place rows of cheese using clone blocks 55


Fill the Stage with cheese bits 56


Create maze walls 58


Cut through maze walls 59


Duplicate wall openings 60


Complicate the maze with dead ends 61


Remove cheese inside walls 62


Add Player Keyboard Controls 63


Duplicate code blocks 65


Make walls stop the mouse 66


The Mouse Eats the Cheese 67


Connect score to snacking 67


Keep track of the cheese left 69


Program Enemy Patrol 70


Give the enemy marching orders 70


Adjust the sprite length 72


Change the center of rotation 73


Track Player Lives 73


Give Player a Chance to Win 75


Project 4: Attacking the Clones 79


Create a New Project 79


Choose a Game Background 80


Create Player and Enemy Sprites 81


Resize and position the spaceship 81


Create alien invaders 82


Modify a sprite from the Sprite Library 83


Clone a Bunch of Aliens 83


Evenly position alien clones 84


Give clones their marching orders 87


Broadcast message to turn 87


Change a sprite's rotation style 88


Straighten alien clone columns 90


Make aliens move down, too 92


Add Laser Blaster to Spaceship 93


Create a laser sprite 94


Fire the laser with the spacebar 95


Create laser clones 96


Enable Spaceship Movement 97


Use Collision to Destroy Aliens 98


Delete the laser on impact 98


Program Enemies to Drop Bombs 100


Create an enemy bomb sprite 100


Randomize enemy attacks 101


Add Sound to Your Game 105


Make lasers a blast 105


Play sound when an alien is hit 106


Give the Player Three Lives 107


Create a variable to track player lives 107


Destroy a Player on Impact 108


Play sound when the player is hit 108


Animate the player explosion 109


Keeping Score 110


Author Notes 114


Share Your Scratch Projects Online 114


Share project from online Scratch editor 114


Share project from offline Scratch editor 116


Publish Scratch Games on Any Website 116

About the Author

Derek Breen is a former designer for the Education Arcade at MIT and teaching fellow in the Digital Media Arts and Instructional Design program at Harvard Extension School. He is the author of Scratch For Kids For Dummies.

Ask a Question About this Product More...
 
Look for similar items by category
Home » Books » Children's » Fiction » Computers » General
This title is unavailable for purchase as none of our regular suppliers have stock available. If you are the publisher, author or distributor for this item, please visit this link.

Back to top