What students build
- Horizontal movement
- A controlled jump
- Safe platforms
- Lava collision
- Win and loss states
- Restart logic
Guided Class Project
Guided Class ProjectCross a room whose floor has become lava for reasons the building manager refuses to explain.
Visible system / hidden curriculum
This is a platformer foundation, not a physics-engine promise. The first version keeps gravity and collision intentionally simple.
Suggested build order
Students may use different artwork and implementation details. The shared structure keeps the concept teachable.
Task: Create clear lava and safe surfaces with strong visual contrast.
Build and test this part before adding the next system.
Task: Change x from keyboard input while checking stage edges.
Build and test this part before adding the next system.
Task: Change y upward, then return downward in controlled steps.
Build and test this part before adding the next system.
Task: Define exactly what counts as platform and lava contact.
Build and test this part before adding the next system.
Task: Create a target, win state, loss state, and complete reset.
Build and test this part before adding the next system.
Test it
Common mistakes
Improve it
Challenge levels
Add a second safe platform.
Create a moving platform with reliable sensing.
Build a second stage and preserve the restart rules.
Show-teacher checkpoint