Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13
Chapter-7 Programming –
Introduction to Game Creation
Topics : Session : 1 of 3 Date : 3.11.2020 To Working with Blocks 6.11.2020 Working with Sprites Working with Multiple Sprites Changing the background of the stage Working with Blocks The block pallet consists of various blocks to move, rotate and play sound to the sprite. Each block represents a command that can be given to us sprite. These blocks are divided into various categories such as : 1. Motion 7. Operator 2. Looks 8. Variables 3. Sound 4. Pen 5. Control 6. Sensing Motion Block It includes blocks that moves the sprite up, down, left or right, turn, set position, point in the given direction and define motion of sprite. It also defines an action if the sprite touches the edge, such as making the sprite bounce if it hits the edge of the stage. Its color code is Dark blue. Looks Block It includes block for sprites to say, think, show, hide, switch costume or backdrop, change color and size. It’s color code is Purple. Sound Block It includes blocks to play different sound or musical notes, stop, change volume and tempo. It’s color code is Pink. Pen Block It includes blocks to move the pen up, down, clear the stage, change color and size. Only the clear block can be used with the stage where as the rest of the blocks are for sprites only. Its color code is Dark green. Control Block It includes blocks for control structure such as if – then – else, wait, repeat, loop, stop the loop and pause. It also duplicates as sprite and uses it repeatedly. These block add interactivity to a project. It’s color code is Yellow. Sensing Block It includes blocks to sense or detect if sprites are touching each other or are at a given distance from each other, key presses and mouse clicks. These blocks makes the programs responsive. It also includes blocks for timing the runtime of the project. It’s color code is Light Blue. Operators Block It includes blocks for arithmetic and logical operators, random number generator and few functions, combine values in control blocks like if and repeat blocks. It’s color code is Light Green. Data Block Create new variables and lists. It’s color code is Red. Program -1 Program - 2 Working with Sprites To Add a New Sprite Click the Choose New Sprite from File button. Click Costume Button from New Sprite Dialog box. Select a Sprite from a category & click OK button.
Scratch Games Programming for Kids & Students: A Step-by-Step Guide and Design Programs for Creating Thoughtful Animations, Puzzles, and Games with Scratch 3.0