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.
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:
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:
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: