Purpose
In our childhood time, Arcade was a precious gift with classic games of the Tetris, Aircraft battle, Snakes…, sometimes I wonder if I can create those games by myself, here goes the Retro Arcade board and let’s create the Aircrafts battle games now!
Materails
Program
Go to MakeCode Arcade: https://arcade.makecode.com/
Click “New Projects”
Name it
Create Sprite and click the grey icon to open the pictures editor
Design your own sprite image or choose one for the data base, here I draw a plan by myself
Drag “move mySprite with buttons” in the code drawer.
Set the start screen in star effect.
Set the scope of the sprite move within the screen.
Set the ejectors as enemies and send themselves downward every 1000ms.
Set the initial life value as 3 and decrease 1 each time when being crashed by enemies, and the enemies are destroyed at the same time.
While pressing button A, launch the projectiles from the spirite, set the speed from X as 0 and Y as -70. Set the effect of the projectiles in fire, when that projectile crashes onto the enemies, both of them are destroyed and the score plus 1.
Program
Link: https://makecode.com/_UE2Xbt9FyV8E
Downloading
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”.
Click downloading to compile the program into the Retro.
Conclusion
Control the movement of the spirite in the screen, set the life in 3. When it crashes onto the enemy, the life score decreases 1, the game is over when the score is 0; press button A to launch the projectiles, the score adds 1 each time when the enemy gets hit.