Aircrafts Battle

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.
Share this post
About the Author

ELECFREAKS focuses on microbit and publishes interesting articles
Related Posts
Topics
- Curriculum
- Course
- Micro bit supplier
- Wholesale Suppliers
- Micro bit tutorial
- Micro bit classroom pack
- Mcorbit Environment Monitoring
- Temperature-controlled
- Motor
- Fan
- TPBot car
- TPBot
- Micro:bit car
- AI Lens
- Micor:bit AI Lens
- Micro:bit LEDs
- BBC micro:bit
- Micro:bit Manipulator
- Wukong board
- Cutebot
- Micro:bit Motorcycle
- Nezha breakout
- Micro:bit DIY
- 360° servos
- AI Lens
- Retro Arcade
- Ecode
- PlanetX
- Microbit programming
- Your:bit
- Do your:bit
- IoT:bit
- Octopus
- Rainbow LED Ring
- Joystick:bit
- Wonder Building Kit
- Sensor:bit
- Downie
- Wenjie
- Laser Engraver Tutorial
Tags
Comments