Page 91 - 2403_Trackpad_V5.1_C3_Fb
P. 91

CREATING A GAME


                 Let us create a ping-pong game.

                 Create the given script.













                                                                                    Line Sprite        Nano Sprite













                        Crystal sprite                  Crystal sprite                    Magic Wand sprite


                 Click on the Green Flag to play the ping pong game using mouse.




























                           CREATING A SCRATCH PROJECT


                 As you know, a Sprite is controlled by a list of instructions known as code or script.
                 We create scratch programs by putting code blocks together. Let us create some

                 projects in Scratch. Programs are written in Scratch to move sprites in x and y
                 coordinates on the stage area.



                                                                                 Introduction to Scratch Programming  89
   86   87   88   89   90   91   92   93   94   95   96