Press "SPACE" to fly up. Let go to drop! Get through the gap and last as long as you can.
I have tried to make this game a simple as possible to allow KS2 or KS3 students to have a go at coding a relatively simple game. I have separated out the code into blocks to show how each section works. Code Explained........ Green Block The green block moves left, if the x coordinate of this block reaches -250 (the left edge of the screen) then the block resets to the far right of the screen. At this point it also changes to the next costume. Flappy Bird The Flappy Bird moves UP if the "space" key is press or else is moves DOWN. If the Flappy Bird is touching the green colour the game ends. A Timer variable is counting up once every second. That is all of the code!