Guided Project

Guided Project

The Floor Is Definitely Lava

Cross a room whose floor has become lava for reasons the building manager refuses to explain.

  • Sensing
  • Collision
  • Coordinates
  • Variables
  • Game State
  • Debugging

Project brief

What students build

  • Horizontal movement
  • A controlled jump
  • Safe platforms
  • Lava collision
  • Win and loss states
  • Restart logic

What students learn

  • Collision evidence
  • Vertical movement
  • State during a jump
  • Boundaries
  • Repeated sensing
  • Testing edge cases

What students need

  • Browser
  • Scratch editor
  • Keyboard
  • Student-drawn platform map

The first version uses simple gravity and collision rules. That leaves enough code visible to inspect when a landing goes wrong.

Suggested build order

  1. 01

    Draw the room

    Task: Give the lava and safe surfaces clearly different colours.

    Checkpoint
    Every safe region is easy to identify.
    Likely mistake
    Using similar colours for walls and hazards.
  2. 02

    Add horizontal movement

    Task: Change x from keyboard input while checking stage edges.

    Checkpoint
    The player moves reliably left and right.
    Likely mistake
    Position changes continue after key release.
  3. 03

    Build a simple jump

    Task: Change y upward, then return downward in controlled steps.

    Checkpoint
    The jump begins and ends predictably.
    Likely mistake
    Starting another jump while already airborne.
  4. 04

    Sense safe and dangerous contact

    Task: Define exactly what counts as platform and lava contact.

    Checkpoint
    Each surface produces the intended state.
    Likely mistake
    Transparent costume edges trigger early.
  5. 05

    Add finish and restart

    Task: Create a target, win state, loss state, and complete reset.

    Checkpoint
    Win and loss cannot happen together.
    Likely mistake
    Only the player position resets.

Test questions

  • Can the player jump forever?
  • Can fast movement pass through lava?
  • Can the player stand beside a platform?
  • Can win and loss overlap?
  • Does restart restore jump state?

Common mistakes

  • Collision is checked only once.
  • The player remains marked airborne after landing.
  • A platform costume has unexpected collision space.
  • Gravity continues after the game ends.

Extension ideas

  • Add one moving platform.
  • Create a warning tile.
  • Add a checkpoint.
  • Design a second room with a different coordinate layout.

Challenge levels

LEVEL 1

Builder

Add a second safe platform.

LEVEL 2

Inventor

Create a moving platform with reliable sensing.

LEVEL 3

Boss Level

Build a second stage and preserve the restart rules.

What to demonstrate

  • Working movement and jump
  • Visible safe and hazard regions
  • Reliable loss
  • Reliable win
  • Complete restart
  • One collision bug explained