What students build
- Horizontal movement
- A controlled jump
- Safe platforms
- Lava collision
- Win and loss states
- Restart logic
Guided Project
Guided ProjectCross a room whose floor has become lava for reasons the building manager refuses to explain.
The first version uses simple gravity and collision rules. That leaves enough code visible to inspect when a landing goes wrong.
Task: Give the lava and safe surfaces clearly different colours.
Task: Change x from keyboard input while checking stage edges.
Task: Change y upward, then return downward in controlled steps.
Task: Define exactly what counts as platform and lava contact.
Task: Create a target, win state, loss state, and complete reset.
Add a second safe platform.
Create a moving platform with reliable sensing.
Build a second stage and preserve the restart rules.