![]() We’ll keep all obstacles inside the array. We’re going to randomly generate obstacles. This is where things will start to get interesting. We’ll control the bird by pressing the A button to go up or the B button to go down. let bird: game.LedSprite = nullīird.set(LedSpriteProperty.Blink, 300) Step 2: Make the Bird flyīefore creating the code for the game actions, let’s first add some controls so that we can move around. Step 1: Add the Bird to the Gameįirst, we are going to add a sprite for the bird from the Game menu and make it blink. The purpose of this tutorial is to teach the basics of game sprites, arrays, and loops. ![]() If the player touches an obstacle, they lose. The objective is to direct a flying bird, which is moving continuously to the right, between sets of obstacles. This is a simple version of the Flappy Bird game for micro:bit. ![]() All the fun from the Flappy Bird game is coming to the micro:bit as Crashy Bird! ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |