Page 73 - 2501_KVS_C-5
P. 73

PROJECT



                                                          SCRATCH






                    Gowri: As we have learned so many blocks and features of Scratch in this class and the previous
                    classes as well. Let’s make a project using a bowl and an egg.

                    Aryan: Oh wow! That’s great.

                    Gowri: First, we will understand the purpose of the game and its rule. See Project 2.1




                              Project 2.1

                   Add two sprites: an ‘egg’ and a ‘bowl’ to your project. Clones of the ‘egg’ sprite
                   will be generated at random times from the top of the stage and fall downward

                   continuously. When the ‘egg’ sprite touches the ‘bowl’ sprite, the bowl collects
                   it, and the scoreboard increases by 1. You can also move the bowl left or right
                   using the Left or Right arrow keys on the keyboard. However, when the ‘egg’
                   sprite touches the edge of the stage, it crashes, and the life count of the game
                   decreases by one. When this happens five times, the egg will fall, and the game

                   will be over.




                    Gowri: Let’s discuss its solution now.

                 Step 1:  Add three sprites from the ‘Choose a sprite’ icon as given below:

                            1.   Sprite “Bowl” & costume: “bowl-a”, it is the initial look of the bowl before
                               the egg is placed inside. Sprite “Bowl”: Name it “Bowl” and design its new
                               costume (named as “bowl-b”) using “Costumes” tab as shown in Fig. 2.1.

                               This new costume is looking like egg is inside the bowl.
                            2.  Sprite “Egg” costume: “egg-a”, it is the default look of the egg before

                               it is crashed or interacted with. Sprite “Egg”: Name it “Egg” and click
                               on “Costumes” tab and keep its costume (named as “egg-b”) and remove
                               all other costumes present in it, as shown in Fig. 2.1. This costume will
                               appear whenever the egg is crashed.

                            3.  “Sprite  ‘Penguin2”:  Name  it  “Gameover”  and  design  its  new  costume
                               (named as “penguin2-b”) using “Costumes” tab as shown in Fig. 2.1. this

                               new costume will be used when game is over.


                                                                               Project (Scratch)                    71
   68   69   70   71   72   73   74   75   76   77   78