Deprecated Lab — Trinket is shutting down
This lab was written for Trinket.io, which is shutting down in August 2026. The embedded trinket.io links on this page will stop working after that date.
These pages are kept for reference only. The current version of this course now runs every lab as an inline Skulpt editor right in the page — no account or install needed. Start at Chapter 1: Welcome to Python.
Changing background and using keys to move the rocket¶
We can use trinkets to change the background and change the shape of the turtle with a custom image. Also we can control the screen with the mouse. It gives a starting point for how to create a game.
The following blog lays out the steps for creating a rocket ship https://blog.trinket.io/using-images-in-turtle-programs/
The images have to be the same size as the the screen size. Here are some other images that have been resized.
Background¶

Rocketpanda¶

Sample Program¶
Experiments¶
- Can you map another keyboard key to take some other actions like jump, draw a circle.
- Use different images and create backgrounds of your choice, like rocketpanda gliding through night sky