Page 95 - Digicode_AI_class_4
P. 95

10  Right click on the pipe

                                                                               and select Rotate.









                         11 Increase the value
                         to rotate the pipe.


            We now want to add programming to our first cycle that when it bumps into the pipe, it wins
            the race.







             12  Add the
             following code.













            Click on the Play button to play the game. Use the WASD keys to make the cycle move. You
            win when you bump the pipe. Enjoy!
            Click on the Home button and then click on Save My World to save this game.


                                                                                 Critical Thinking
                   code Quest                                                    Information Literacy


                 1.  Which sign is used to code your bot?




                 2.  Which button is used to play the game?







                                                                         Introduction to Kodu Game Lab    93
   90   91   92   93   94   95   96   97   98   99   100