Press the up arrow key to make the dinosaur jump to avoid being hurt by the tree.
1. Created a background. 2. Program dinosaur and trees sprites as shown. 3. To make the game more playable, make adjustments to the values of how high and fast the dinosaur jumps and how fast the running action looks by changing the speed of the tree too.