In Scratch, we have been learning to code simple games. Here is my example called 'Flappy Patterson'. Feel free to magpie any code ideas, but don't be put off my game got quite complicated once I wanted to add levels and have a high score. Good luck, its not as simple as it looks.
Here is the link if the game doesn't appear below