1 / 4

Coding for Flappy Seagull

Coding for Flappy Seagull. Here is some of the coding for my game Flappy Seagull explained. This coding here is for the pipes, and basically it tells the game that if Flappy touches the pipe, Flappy dies.

africa
Download Presentation

Coding for Flappy Seagull

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 Seagull

  2. Here is some of the coding for my game Flappy Seagull explained. This coding here is for the pipes, and basically it tells the game that if Flappy touches the pipe, Flappy dies. Here , where it says “If x mod 500 = 0 switch to costume pick random one to four” , this is telling the game to switch to a different pipe if Flappy is still alive.

  3. This coding is for the stage. Here this coding is about the score and high score. “if score > high score set high score to score” means that if your current score is higher than the saved high score, it will update the high score to yours. This piece of coding basically means for every time that flappy has not died, the score will be increased by one.

  4. This is Flappy’s coding. This tells Flappy to go up when the player presses space, and this tells Flappy turn upside down and drop to the bottom when he dies. This coding up here simply makes Flappy look like he’s flapping his wings; the game waits 0.1 seconds before switching to Flappy’s second costume.

More Related