![](https://static.wixstatic.com/media/01b81b_e00a03fcf0a24d1ca6decef7fd5cefc5.jpg/v1/fill/w_1425,h_1920,al_c,q_90,usm_0.66_1.00_0.01,enc_avif,quality_auto/01b81b_e00a03fcf0a24d1ca6decef7fd5cefc5.jpg)
![microbit _Clear Background.png](https://static.wixstatic.com/media/01b81b_27171bb0e69241c9aca1f139f31d9d47~mv2.png/v1/fill/w_189,h_120,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/microbit%20_Clear%20Background.png)
2
![microbit _Clear Background.png](https://static.wixstatic.com/media/01b81b_27171bb0e69241c9aca1f139f31d9d47~mv2.png/v1/fill/w_186,h_120,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/microbit%20_Clear%20Background.png)
2
Meet the Micro:bits
Coding is easy and fun when students meet the micro:bits. Learn to write and download code, so you are ready to create your own scientific tools!
Meet the Micro:bits
Coding is easy and fun when students meet the micro:bits. Learn to write and download code, so you are ready to create your own scientific tools!
Student Edition
(English/Spanish)
Student Edition
(English/Spanish)
Student Edition
(English/Spanish)
California Wildfires
![](https://static.wixstatic.com/media/01b81b_7e7c9bba360a400f99dc083f4a41f7d5~mv2.png/v1/fill/w_282,h_53,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/01b81b_7e7c9bba360a400f99dc083f4a41f7d5~mv2.png)
KittyCode Programming Challenge
![](https://static.wixstatic.com/media/01b81b_7e7c9bba360a400f99dc083f4a41f7d5~mv2.png/v1/fill/w_282,h_53,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/01b81b_7e7c9bba360a400f99dc083f4a41f7d5~mv2.png)
![](https://static.wixstatic.com/media/01b81b_5c2b6ee9b4094eeea6be4f0b25606292~mv2.png/v1/fill/w_234,h_106,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/01b81b_5c2b6ee9b4094eeea6be4f0b25606292~mv2.png)
![](https://static.wixstatic.com/media/01b81b_5c2b6ee9b4094eeea6be4f0b25606292~mv2.png/v1/fill/w_234,h_106,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/01b81b_5c2b6ee9b4094eeea6be4f0b25606292~mv2.png)
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:
![1_basic.png](https://static.wixstatic.com/media/01b81b_ed9a6051418841ceaf293b0f7a8f59fe~mv2.png/v1/fill/w_201,h_42,al_c,q_85,enc_avif,quality_auto/1_basic.png)
![Start Block.png](https://static.wixstatic.com/media/01b81b_2583505863e545f4a2cf20e8c1deae05~mv2.png/v1/crop/x_13,y_22,w_157,h_108/fill/w_157,h_108,al_c,q_85,enc_avif,quality_auto/Start%20Block.png)
![Screen Shot 2019-08-01 at 3.00.04 PM.png](https://static.wixstatic.com/media/01b81b_381e771bc292422c98df546ff6c067bb~mv2.png/v1/crop/x_3,y_7,w_203,h_40/fill/w_203,h_40,al_c,q_85,enc_avif,quality_auto/Screen%20Shot%202019-08-01%20at%203_00_04%20PM.png)
![Screen Shot 2019-08-01 at 3.00.47 PM.png](https://static.wixstatic.com/media/01b81b_08010c4294774377a2e6379c14e283ef~mv2.png/v1/fill/w_252,h_34,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/Screen%20Shot%202019-08-01%20at%203_00_47%20PM.png)
![8_Variables.png](https://static.wixstatic.com/media/01b81b_c582e265a5a14c079384b0397b6af8f9~mv2.png/v1/fill/w_198,h_42,al_c,q_85,enc_avif,quality_auto/8_Variables.png)
![Screen Shot 2019-06-25 at 2.29.31 PM.png](https://static.wixstatic.com/media/01b81b_ee56cdde853d4468995f93b087e0215a~mv2.png/v1/fill/w_200,h_45,al_c,q_85,enc_avif,quality_auto/Screen%20Shot%202019-06-25%20at%202_29_31%20PM.png)
![Screen Shot 2019-08-01 at 2.56.00 PM.png](https://static.wixstatic.com/media/01b81b_f97ad8d7de98489492521de067db45fd~mv2.png/v1/fill/w_109,h_57,al_c,q_85,enc_avif,quality_auto/Screen%20Shot%202019-08-01%20at%202_56_00%20PM.png)
![Screen Shot 2019-08-01 at 3.10.43 PM.png](https://static.wixstatic.com/media/01b81b_b18d3938d86b4383857299b97266375b~mv2.png/v1/fill/w_228,h_62,al_c,q_85,enc_avif,quality_auto/Screen%20Shot%202019-08-01%20at%203_10_43%20PM.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](https://static.wixstatic.com/media/01b81b_ed9a6051418841ceaf293b0f7a8f59fe~mv2.png/v1/fill/w_201,h_42,al_c,q_85,enc_avif,quality_auto/1_basic.png)
![Forever.png](https://static.wixstatic.com/media/01b81b_ecd979dfe58f43239f5a5ffc6708c816~mv2.png/v1/fill/w_162,h_108,al_c,lg_1,q_85,enc_avif,quality_auto/Forever.png)
![Screen Shot 2019-08-01 at 3.00.04 PM.png](https://static.wixstatic.com/media/01b81b_381e771bc292422c98df546ff6c067bb~mv2.png/v1/crop/x_3,y_7,w_203,h_40/fill/w_203,h_40,al_c,q_85,enc_avif,quality_auto/Screen%20Shot%202019-08-01%20at%203_00_04%20PM.png)
![Screen Shot 2019-08-01 at 3.38.58 PM.png](https://static.wixstatic.com/media/01b81b_ecd3bf963f3b42dfaaccd0525dfc176d~mv2.png/v1/crop/x_0,y_3,w_283,h_60/fill/w_198,h_42,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/Screen%20Shot%202019-08-01%20at%203_38_58%20PM.png)
![Screen Shot 2019-08-01 at 3.39.07 PM.png](https://static.wixstatic.com/media/01b81b_adf1a661700f4860965191640028fefb~mv2.png/v1/fill/w_239,h_53,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/Screen%20Shot%202019-08-01%20at%203_39_07%20PM.png)
![Screen Shot 2019-08-01 at 3.39.21 PM.png](https://static.wixstatic.com/media/01b81b_5ded68316c7c4e55a0b597d7a052067f~mv2.png/v1/fill/w_188,h_62,al_c,q_85,enc_avif,quality_auto/Screen%20Shot%202019-08-01%20at%203_39_21%20PM.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](https://static.wixstatic.com/media/01b81b_9c7c69c251c34a24a476526b437e3567~mv2.png/v1/fill/w_199,h_41,al_c,q_85,enc_avif,quality_auto/2_Input.png)
![microbit_memorygame_step3.png](https://static.wixstatic.com/media/01b81b_1b2c1a8162bc49edb9c3485a4e1a364e~mv2.png/v1/crop/x_25,y_16,w_302,h_138/fill/w_196,h_90,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/microbit_memorygame_step3.png)
![7_Logic.png](https://static.wixstatic.com/media/01b81b_26ee21a470d149f5a576ab47091d9b27~mv2.png/v1/fill/w_199,h_40,al_c,q_85,enc_avif,quality_auto/7_Logic.png)
![If Else.png](https://static.wixstatic.com/media/01b81b_3d66f1d243c14bb68bb1b1458737c563~mv2.png/v1/fill/w_180,h_185,al_c,q_85,enc_avif,quality_auto/If%20Else.png)
![Screen Shot 2019-08-01 at 3.00.04 PM.png](https://static.wixstatic.com/media/01b81b_381e771bc292422c98df546ff6c067bb~mv2.png/v1/crop/x_6,y_7,w_201,h_40/fill/w_201,h_40,al_c,q_85,enc_avif,quality_auto/Screen%20Shot%202019-08-01%20at%203_00_04%20PM.png)
![Screen Shot 2019-08-05 at 11.21.25 AM.pn](https://static.wixstatic.com/media/01b81b_c3f8aff71ab144d493b30bbdd655dc0a~mv2.png/v1/fill/w_171,h_48,al_c,q_85,enc_avif,quality_auto/Screen%20Shot%202019-08-05%20at%2011_21_25%20AM_pn.png)
![Screen Shot 2019-08-05 at 11.21.38 AM.pn](https://static.wixstatic.com/media/01b81b_360a77214076439c8be4f8dce5204846~mv2.png/v1/crop/x_0,y_3,w_200,h_58/fill/w_200,h_58,al_c,q_85,enc_avif,quality_auto/Screen%20Shot%202019-08-05%20at%2011_21_38%20AM_pn.png)
![Screen Shot 2019-08-05 at 11.21.50 AM.pn](https://static.wixstatic.com/media/01b81b_7bfe07a5f1dd4787bc752450abe29347~mv2.png/v1/fill/w_109,h_65,al_c,q_85,enc_avif,quality_auto/Screen%20Shot%202019-08-05%20at%2011_21_50%20AM_pn.png)
![Screen Shot 2019-08-05 at 11.21.13 AM.pn](https://static.wixstatic.com/media/01b81b_0cf6950df1c04c99acdce94c1bdb3d9c~mv2.png/v1/fill/w_174,h_44,al_c,q_85,enc_avif,quality_auto/Screen%20Shot%202019-08-05%20at%2011_21_13%20AM_pn.png)
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!