Page 94 - Scratch Programming Playground
P. 94

Before you start coding, look at the final program at
                         https://www.nostarch.com/scratchplayground/.

























                         Sketch out the Design


                         First, let’s sketch out what we want the game to do. The player
                         controls the cat, which can move left and right and jump. The
                         goal is to have the cat shoot baskets into a moving basketball
                         hoop, which will glide around the Stage randomly.


                           D
                               Make the cat shoot hoops.


                           A
                               Make the cat
                               jump and fall.



                                                                    C
                                                                       Make a hovering
                                                                       basketball hoop.


                                                              B
                                                                  Make the cat move
                                                                    le  and right.





      68    ChapTer 4
   89   90   91   92   93   94   95   96   97   98   99