Page 148 - Digicode_AI_class_6
P. 148

MakeCode Arcade                                                         Information Literacy
                                                                                      Critical Thinking
            Chase the Apple

            E.  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:




















              Python                                                                  Art Integration
                                                                                      Critical Thinking
            F.  Write a Python program to print the following:

                   Five famous landmarks of your city.
                   Name of any five countries that you wish to visit.
                   Your five favourite cars.

            G.   Write a python program to  calculate the multiplication of two numbers.





                146    DigiCode AI-VI
   143   144   145   146   147   148   149   150   151   152   153