Case 03: Dodge Monsters¶
Program¶
Set the game over if the sprite reaches onto the plants and the the sprite wins if it reaches the jewel. On the way of progressing, a monster comes out each two seconds to hit the sprite, the life score starts from 3 and it decreases by 1 if the sprite gets hit by the monster and the game is over if the score decreases to 0.
Program¶
You may download it directly below:
Downloading Program¶
After programming, connect the computer with the Retro via the USB cable.
Choose hardware “F4”.
Click the reset button on the Retro and go to the downloading page.
Match the devices and get connected with “Arcade (app)”.
Click downloading to compile the program into the Retro.
Conclusion¶
Set the background and the movement of the sprite, when it falls into the traps the game is over and it wins when arriving at the jewels. A monster comes out each two seconds to hit the sprite, the life score starts from 3 and it decreases by 1 if the sprite gets hit by the monster and the game is over if the score decreases to 0.