Aircrafts Battle

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

Retro Arcade for Education

Retro Arcade for Education

Program

Go to MakeCode Arcade: https://arcade.makecode.com/

Click “New Projects”

Retro Arcade for Education

Name it

Retro Arcade for Education

Create Sprite and click the grey icon to open the pictures editor

Retro Arcade for Education

Retro Arcade for Education

Design your own sprite image or choose one for the data base, here I draw a plan by myself

Retro Arcade for Education

Drag “move mySprite with buttons” in the code drawer.

Retro Arcade for Education

Retro Arcade for Education

Set the start screen in star effect.

Retro Arcade for Education

Set the scope of the sprite move within the screen.

Retro Arcade for Education

Set the ejectors as enemies and send themselves downward every 1000ms.

Retro Arcade for Education

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.

Retro Arcade for Education

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.

Retro Arcade for Education

Program

Link: https://makecode.com/_UE2Xbt9FyV8E

Downloading

After programming, connect the computer with the Retro via the USB cable.

Retro Arcade for Education

Choose hardware "F4".

Retro Arcade for Education

Click the reset button on the Retro and go to the downloading page.

Retro Arcade for Education

Match the devices and get connected with "Arcade".

Retro Arcade for Education

Click downloading to compile the program into the Retro.

Retro Arcade for Education

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.