Page 80 - Super Scratch Programming Adventure -1st Edition
P. 80

Desert rally race




               Chapter Focus            Game
          Learn how to create a    Control Scratchy’s car to avoid obstacles
          scrolling game, program   and to run away from the Dark Minions
          complex movements for    in order to reach the Great Pyramid of
          the sprites, and make a   Giza. Each time you crash your car, one
          background change over   of the Cosmic Defenders will jump out.
          time.                    If you crash your car four times, your
                                   car will break down!


                                       Let’s start by importing a project called DesertRace,
                                       which already has a bunch of sprites in it. It doesn’t
                                       have any programs yet, but we’ll add some soon.
                                       First, let’s look at the Stage. If you click the Stage
                                       in the Sprite List, you can see that we have a lot of
                                       different backgrounds.






































                                                 79
   75   76   77   78   79   80   81   82   83   84   85