https://studio.code.org/s/course2/stage/16/puzzle/1
Different events of this game are "When Run", "When Click", "When Pass Obstacle", "When hit an obstacle" and "When hit ground". You can assign different code blocks to each of this event. And that is how the actions in the game will be determined. This stage has 10 levels. You are introduced to different events and asssociated action in these levels. You will then be able to design this game all by yourself in the last level. It is a fun activity. You might enjoy learning how a game works.
Below is a screen shot of the 10th level of this stage. You can click on the image to see an enlarged view.