А very simple game

For this project, let us try to make one very simple game.

Images that we are going to use for our simple game.

Rocket Planet Martian Martian with a heart

The final version of the game

This is what our final mini-game should look like.

Loading and showing the rocket

As the first step, just load the image of the rocket and show it on the screen.

Show the rocket on the bottom of the screen

Now adapt the program so that the rocket is shown in the bottom of the screen.

Draw the planets

Let us draw a row of planets at the top of the screen. Hint: use a loop to make the code shorter.

Animate the martian

Let us now animate the martian that moves under the planets, from the left to the right of the screen and back.

React to user commands

Now enable moving the rocket to the left or to the right using the two arrow keys.