CODING
ADVENTURE
0 / 12 completed

GAME LAB / DICTIONARIES & BRANCHING

Christine’s Choice

Write the scenes. Connect the choices. Change the ending.

YOUR INTERACTIVE STORY

START

Choose a route, then try writing your own.

You're the author now.

Change a scene’s text or add a choice below. Each choice points to a scene name. Keep start and ending, and give every scene a route to the ending.

Use straight double quotes. Text is displayed as text; it is never executed as code.

Try a new scene

Add a scene called receipt, give it some text and a choice pointing to rescue. Add a receipt choice in start. Apply your version, then test the old routes too.

Make the Python version yours.

The book walks through this game, line by line. Download the standalone Python file, run it in Python 3 and change one rule.

Download Python source ↓