Page 69 - TP_Modular_V2.1_Class5
P. 69

CREATING A GAME


                    08                                                                        IN SCRATCH















                      Your Aim

                      to learn about:
                            Block Shapes in Scratch                       Sensing Blocks
                             Variables                                       Conditional Blocks
                               Use of Loop Blocks                             Creating a Game



                 As you must have observed, the blocks in Scratch  are  in different  shapes and
                 colours. They are used for various purpose like creating shapes and scenes. In this
                 chapter, we will learn about the various blocks to create a game.

                    BLOCK SHAPES IN SCRATCH

                 Block shapes can be divided into six types of shapes. They are: Hat, Stack, Boolean,
                 Reporter, C and Cap.

                 Hat Blocks

                 They are called hat blocks as they look like a hat. We wear a hat on
                 our head, so the hat always comes on the top. Similarly, hat blocks
                 always come at the top of a script as they start a script. This means
                 that you cannot place any blocks above them.

                 Stack Blocks

                 Stack blocks are the most used blocks in Scratch. They
                 are the main commands used to perform some actions.
                 Stack blocks have a bowl shape cut on the top and a
                 bump at the bottom. This makes it easier to stack other blocks above and below
                 them.

                 Boolean Blocks

                 Boolean blocks are condition blocks which return the values “true”

                 or “false” or the number “0” or “1” depending on how they are used
                 in the script.

                                                                                 Creating a Game in Scratch       67
   64   65   66   67   68   69   70   71   72   73   74