1 / 6

Coding for flappy birds

Coding for flappy birds. By Devon Aggett. Order of coding: Flappy character coding Pipes 1 Pipes 2 Vignette score. When Green Flag clicked, reset game, forever change velocity by -0.5 , and change Y by velocity. When Green Flag clicked, forever next costume, wait for 0.1 seconds.

fedora
Télécharger la présentation

Coding for flappy birds

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. Coding for flappy birds By Devon Aggett Order of coding: Flappy character coding Pipes 1 Pipes 2 Vignette score

  2. When Green Flag clicked, reset game, forever change velocity by -0.5 , and change Y by velocity. When Green Flag clicked, forever next costume, wait for 0.1 seconds. When space key pressed, if not dead, set velocity to 5. When space key pressed, if not dead, play sound DrumBuzz. When I die, if dead = no, set dead to yes (died), then play sound HandClap(finish if command), point directly , set velocity to -5, wait until y axis position of flappy < -170, then broudcast RESET (restart game). when game has reset, point 90 degrees, set x xis to 0, set y axis to 0, flappy character go to front, set velocity to 0 , not dead anymore.

  3. When Green Flag clicked, set y axis to 0, switch between 1-4 pipes, forever, set x to x mod 250 – 500, if pipes touching flappy character and flappy not dead yet, KILL FLAPPY!  (finish if command), if x mod 500 = 0, switch pipes between 1-4.

  4. When Green Flag clicked, set y axis to 0, switch between 1-4 pipes, forever, set x to x + 250 mod 500 - 250, if pipes touching flappy character and flappy not dead yet, KILL FLAPPY!  (finish if command), if x + 250 mod 500 = 0, switch pipes between 1-4.

  5. When green flag clicked, set x to 0, set y to 0, hide variable score, hide variable high score, go to front, show variable score, show variable high score.

  6. When I die, if score is bigger than my high score, say (join) “NEW HIGH SCORE!” for a duration of 2 seconds, else say (join) score: (variable score) score for 2 seconds.

More Related