Page 75 - 2616_V iCode_C-5
P. 75

So  far,  we  have  learned  about  creating  shapes  from  scratch  and  about  different
                 blocks of scratch. In this chapter, we will learn about the more blocks of Scratch and
                 creating games in Scratch.


                 Blocks Shapes in Scratch


                 As you must have observed, the blocks in Scratch are in different shapes. They can be
                 divided into six types of shapes. These 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 perform the main commands. 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.

                 Reporter Blocks

                 Reporter  blocks  can  hold  values,  which  consist  of  numbers  or

                 strings. If you ask, “What is 3 + 3 ?”, it will answer “6”. They have
                 rounded edges.

                 C Blocks

                 As the name suggests C blocks are C shaped. They are also known
                 as Wrap blocks. These are loop blocks to check if a condition is

                 true in the blocks within the loop. The C blocks are present in
                 the Control blocks category.

                 CAP Blocks

                 The blocks that end scripts are known as CAP blocks. They have a
                 notch at the top and a flat bottom. They are usually the last blocks
                 in the script. They are also present in the Control blocks category.



                                                                           Advanced Blocks & Game Creation    73
   70   71   72   73   74   75   76   77   78   79   80