Page 147 - Dig_CodeAI_V2.1_Class_8
P. 147
Experiential Learning
MakeCode Arcade Critical Thinking
Eat and level up
C. 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:
Practical Assessment 145

