Page 90 - Touchcode_C6_Flipbook
P. 90

PROJECT                         PROJECT





                                                                                                      Subject Enrichment
                                                    CHASE THE APPLE


                 Create a game with two sprites, one will be a Player sprite and another will be an
                 Apple sprite.

                 Objective of the game:

                     To chase and catch the wandering apple and collect as many points as possible before
                     the time runs out.
                     Every time the apple is caught, points are added, and the timer is restored.

                 Code:



























                 Output:


























                   88     Touchcode-VI
                   88
   85   86   87   88   89   90   91   92   93   94   95