use the Octopus or Shark sprites in an underwater environment). Remove a "point" when the Bat hits a Barrier to make reaching high scores more difficult.Ĭreate background scenery or even consider different types of sprites and scenes (ex. Flappy Cave Bat Flappy Dunk Shoot Flappy Soccer Ball Flappy Rocket Playing with Blow. You built a Flappy Bat game! Now, here are a few Challenges:Īdd sound effects for the Bat "flapping" and hitting Barriers.ĭecide when the game is over by limiting how many times the Bat can hit a Barrier. Flappy Pumpkin Pumpkin Ice Cream Running Pumpkin Pumpkin Muffins Halloween Pumpkin Decor Halloween Hidden Pumpkin. Since our Bat 'fell' downward (direction of 180°) make it straight again after it falls (back to 90°). Add an if-then statement to increment the Score variable when the Barrier clone passes a certain x-position (that matches the Bat sprite's x-position). Select the Barrier sprite and click "Make a Variable" in the Scripts/Data tab. Revise your main Bat script to detect collision with a Barrier. Barrier Clone scriptĮach Barrier clone will move left across the screen before deleting itself. Set up the Barrier sprite to repeatedly clone itself off-screen with slight random y-positions. Draw simple shapes that your Bat will need to fly through. Create a BarrierĬreate a new sprite named Barrier. Your Bat can't just fly up! Add a simple script to simulate gravity. Set up your Bat sprite position and size use a forever loop and key press to flap. Repeat the last step to add the "bat1-b" costume Delete the 2 Cat costumes and rename the sprite to "Bat". In the Costume Library, click on "Animals" and select "bat1-a" click the "OK" button. Select Sprite1's Costumes tab and click the "Choose Costumes from Library" icon. Play Now 4.5 Flappy Bat is Another Flappy game In this game you control a flappy bat and like always (), you have to tap the screen and avoid obstacles (pillar) as you move forward. Keep track of Barriers passed with a Score counterĭon't forget to run your game after each step! Sign in at Scratchįrom the Scratch menu, click "Create" to start a new project. Make the Bat sprite respond to hitting a Barrier with collision detection Make timed "clones" of Barriers that scroll Make the Bat sprite "flap" with different costumes via key press Revisit a few game mechanics we learned in past CoderDojo sessions!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |