Skip to content

6. Mini Project: Your Text Adventure

Build the text adventure you planned in Unit 1, Lesson 7 — for real, in Scratch.

A suggested approach:

  • One backdrop per room (or one sprite per room if you'd rather show/hide them)
  • Broadcasts to move between rooms, matching the arrows in your flowchart
  • A variable for health, an item, or anything else that changes as the player plays
  • At least one if / else for a choice, and one loop for something that repeats (a fight, a search, a retry)
when green flag clicked
set [health] to (3)
switch backdrop to [room 1]

when I receive [fight]
repeat until <health = (0) or [won] = (1)>
    ...

Check it against your Unit 1 flowchart as you go — every box and diamond you drew should map to something in your scripts.

Try it

Finish your adventure: all the rooms from your plan, the decision, the loop, and the variable, all working together.

Tip

Test after every small change rather than building the whole thing before running it once — it's much easier to find what broke in 5 new blocks than in 50.