Case 02: Coins Hunter
Purpose
Create a game of coins hunter.
Materials Required
1 x RETRO Arcade for Education
Software
Program
Set the background color to green and create mySpirite, set the type as player, create another mySprite2 and set the type as Food. Control the movement with buttons and set it stay in screen in on status, then set mySpirite2 displays at a random place.
While the player overlaps with the food, set the food display at another random place, start the countdown in 3(s) and the score adds 1.
Program
Link: https://makecode.com/_H8tLp7FY8a8i
You may download it directly below:
Downloading Program
After programming, connect the computer with the Retro via the USB cable.
Choose hardware "F4".
Match the devices and get connected with "Arcade (app)".
Click the reset button on the Retro and go to the downloading page.
Click downloading to compile the program into the Retro.
Conclusion
Control the movement of the hunter in the screen, while it reaches one coin, the score adds 1, after that it starts countdown 3 seconds, the game is over if the time runs out, or it reaches another loop if the hunter gets another coin.