top of page
KittyCode Programming Challenge

Make an Arcade Game With Your micro:bit

Program your micro:bit to become an arcade game and keep score. Try to press the "A" button when the dot is exactly in the middle of the screen.  

New project.png

1 - Start a new project in MakeCode

Go to "MakeCode.microbit.org" to start a new project by clicking the new project icon above. Click the purple plus box labeled "New Project" to begin.

2- Create a Sprite

A sprite is the object that you will program to move. Program the sprite to appear in the middle of the micro:bit screen. You will need to use the X-Y axis to place your sprite. Try these blocks:

1_basic.png
Start Block.png
Screen Shot 2019-08-01 at 3.00.04 PM.png
Screen Shot 2019-08-01 at 3.00.47 PM.png
8_Variables.png
Screen Shot 2019-06-25 at 2.29.31 PM.png
Screen Shot 2019-08-01 at 2.56.00 PM.png
Need Help_ Heres a Tip.png
Screen Shot 2019-08-01 at 3.10.43 PM.png

3- Move Your Sprite

Program your sprite to move across its X-axis. You will need a block to make sure it bounces back after it hits the edge and another to control its speed (the faster your sprite moves, the harder the game will be). Try these blocks:

1_basic.png
Forever.png
Screen Shot 2019-08-01 at 3.00.04 PM.png
Screen Shot 2019-08-01 at 3.38.58 PM.png
Screen Shot 2019-08-01 at 3.39.07 PM.png
Screen Shot 2019-08-01 at 3.39.21 PM.png
Need Help_ Heres a Tip.png

4- Make it a Game!

Program your micro:bit to keep score when you press the "A" button as soon as the dot is in the middle. If the dot is in another position, it's game over. Try these blocks:

2_Input.png
microbit_memorygame_step3.png
7_Logic.png
If Else.png
Screen Shot 2019-08-01 at 3.00.04 PM.png
Screen Shot 2019-08-05 at 11.21.25 AM.pn
Screen Shot 2019-08-05 at 11.21.38 AM.pn
Screen Shot 2019-08-05 at 11.21.50 AM.pn
Need Help_ Heres a Tip.png
Screen Shot 2019-08-05 at 11.21.13 AM.pn

Hooray! You did it!

Play your game with your micro:bit and press the "A" and "B" buttons together to restart!

If you need help, click me to see the finished product!

Plus.png
bottom of page