Chapter: 06. Scratch Programming Game Creation
One Touch Learn
A. Tick (✓) the correct option.
Scratch has that are dragged to combine and create a project.
a. scripts
c. blocks
b. sprites
d. programs What can variables in a computer program do?
a. Have fixed value
c. Store only numbers
b. Change value
d. Store unchangeable data is the background of the stage.
a. Wallpaper
c. Backdrop
b. Image
d. Sprite are puzzle piece shapes that are used to give instructions to the computer.
a. Blocks
c. Sprites
b. Scripts
d. Backdrop Which of the following blocks are user-made custom blocks?
a. My Blocks
c. Motion
b. Pen
d. Looks B. Write ’ T ’ for true and ’ F ’ for false.
A stage is 480 pixels tall. F (It is 360 pixels tall and 480 pixels wide) A script is another name for software. F (A script is another name for a program in Scratch, not software in general) There are eight categories of blocks. F (There are 10 categories: Motion, Looks, Sound, Pen, Events, Control, Sensing, Operators, Variables, My Blocks) All blocks inside the Forever block run until the Stop button is clicked. We can draw a decagon in Scratch. C. Fill in the blanks using the words given below:
stamp, pen, regular, sound, operators
Stamp block can be found in the blocks menu. A polygon is a closed figure with all sides of equal length and all angles of equal size. _ _ _ _ block copies the sprite's image on the stage. The _ _ _ _ _ _ _ _ _ blocks are used to play or stop sounds. The _ _ _ _ _ _ _ _ _ _blocks let you make comparisons between or perform arithmetic functions on different values. D. Name the block menu to which these blocks belong.
A. Short answer type questions.
Pen blocks are green-colored blocks in Scratch that are used to draw shapes and patterns on the stage, and to change the pen’s color and size. They allow the sprite to leave a trail as it moves. Write the names the three types of Operators blocks. The three types of Operators blocks are: Arithmetic Operators, Relational Operators, and Logical Operators. Which control block is used to draw a pentagon? The repeat block (specifically, repeat 5 for a pentagon, with a corresponding turn 72 degrees block inside). Write the names of any two conditional control blocks. B. Long answer type questions.
What are the four methods to choose a sprite? The four methods to choose a sprite are: Choose a Sprite from Library: Selecting a pre-made sprite from Scratch’s extensive collection. Paint a New Sprite: Drawing your own custom sprite using the built-in drawing tools. Surprise: Adding a random sprite from the library. Upload Sprite: Importing an image file from your computer to use as a sprite. What are the two types of Variables? Explain briefly. The two types of Variables are: Numeric Variable: A variable that stores numbers. These numbers can be used in calculations (e.g., storing a score, age, or count). Their values can be positive, negative, or decimals. String Variable: A variable that stores letters, words, sentences, or characters (also called strings). These are typically enclosed in quotation marks and are not used in mathematical calculations (e.g., storing a name, a message, or a description). Differentiate between Repeat and Forever Block. Purpose: Executes a set of instructions for a specified, fixed number of times. Control: You define how many times the loop should run (e.g., repeat 10). Stopping Condition: The loop automatically stops once the specified number of repetitions is completed. Use Case: Drawing polygons (e.g., a square needs exactly 4 repetitions), counting to a specific number. Purpose: Executes a set of instructions continuously, without stopping, indefinitely. Control: It runs until it is manually stopped by the user (by clicking the Stop button). Stopping Condition: There is no built-in stopping condition based on a count or a true/false statement within the block itself; it requires external intervention. Use Case: Games that run indefinitely, animations that loop forever, checking for continuous conditions (e.g., forever if touching color...). C. Application-based questions.
Mohit is making a game in Scratch where a sprite draws a shape by moving to where the mouse clicks. He knows how to create the shape automatically but needs help setting it up so the shape is drawn with mouse clicks. Can you help Mohit create the Scratch code for this? To help Mohit, we’d use the when this sprite clicked (or when stage clicked) event and the go to mouse-pointer block. Here’s a possible code snippet: go to x: 0 y: 0 (or starting position) when mouse clicked (or when this sprite clicked if the shape draws from sprite) repeat 4 (for a square, adjust for other shapes) hide (optional, to hide the sprite after drawing) Sam is planning to create a Scratch game of picking up garbage from the stage. Provide him hints for the blocks required and their usage in the game too. Hints for Sam’s Garbage Picking Game: Sprites: Need a main character sprite (e.g., a robot, person) and multiple “garbage” sprites (e.g., plastic bottle, can, paper). when (left arrow) key pressed / change x by (-10): For moving left. when (right arrow) key pressed / change x by (10): For moving right.