E N D
These sets of codes function the games in its important parts, it resets when you press start if you die and changes the velocity of how the character jumps and the part where the bird actually ‘flaps’ is in the second set where it changes to the next costume where the position of the wing is different. This functions the death and spawn back and it changes the direction of the bird to look like the bird is falling and making sure it resets the score and the player comes back and resumes and the game tells you the information that the player has acted upon.
These are the function of the pipes so the game can actually be challenging and these sets should function the pipes with in game physics so if the player went past the pipes it would change to the next pipe. This functions the high score so when the player reaches a limit the game records the results and plants a ‘high score’ and a ‘score’ which resets and challenges the player to beat his previous score.