Page 90 - Touchcode_C8_Flipbook
P. 90

PROJECT
                          PROJECT






                                                       EAT AND LEVEL UP

                    Create a game with two sprites, one will be a Player sprite, second will be Cherry sprite.

                    Objective of the game:

                       Move your sprite around the screen and eat as much cherry as you can before the time
                        runs out!
                       Every time you eat the cherry, points are added, and the timer is restored.
                       You will be given time of 10 seconds, and you have to eat all the cherry, if you fail to do
                        so, your game will be over.

                    Code:






















                    Output:






























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