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

The Louvre





                Chapter Focus            The Game
           Let’s learn how to control   This game is actually two games in
           the flow of a game. You’ll   one. First, you’ll face Rata’s quiz.
           see how to keep score    Then you’ll have to put the Mona
           using variables and control   Lisa back together in a puzzle game.
           the order of the game    If you get the answer wrong three
           using broadcasts.        times, the game ends and you lose!




                First, let’s import a picture of the Louvre   Then we’ll add a program that makes
                Museum as a background to the Stage.      the Stage play music. The forever
                                                          block is a special kind of command we
                                                          call a loop. Any sound effect or music
                                                          you add here keeps playing again and
                                                          again, so make sure you like how it
                                                          sounds!
























                                                        Photo Credit: Raphael Frey











                                                45
                                                45
   41   42   43   44   45   46   47   48   49   50   51