html5-img
1 / 11

Flappy Bird Code

Flappy Bird Code. By Thomas. P . Flappy Bird Code. This code broadcasts reset when the green flag is clicked along with changing velocity to -0.5 and changing the Y by the velocity forever.

lok
Télécharger la présentation

Flappy Bird Code

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Flappy Bird Code By Thomas. P

  2. Flappy Bird Code

  3. This code broadcasts reset when the green flag is clicked along with changing velocity to -0.5 and changing the Y by the velocity forever. This code allows it so that when the space bar is clicked (how to fly) and dean is not true then it set you velocity to 7 allowing you to fly again.

  4. When die is broadcasted (which is when you die) and dead is not true, it set dead to yes and then plays the sound ‘HandClap’. The code points the sprite downwards and make you hit the ground. This code changes the birds costume every 0.1 seconds to make it look like it is flying.

  5. This code means that when you press the space key and you’re not dead it will play the sound ‘DrumBuzz’ When the broadcast reset is received it points the bird in a 90° angle and set the Y & X to 0. Its makes the bird to the front and set the velocity to 0 and dead to ‘no’.

  6. Pipes 1 & 2

  7. These codes choose a random pipe and spreads them out evenly so you can fly through them.

  8. Vignette

  9. This code hides variables and sets X & Y to 0. It also make the variables go to the front and then show both variables.

  10. Score

  11. When the broadcast die is received and score is higher than highscore the game says ‘ New High Score.

More Related