Reading a sample’s rules

Open a sample, switch to List, and read the rules from the top like a story.

Treetop Trek — NutHouse
The rules of Treetop Trek shown in List view, grouped and written as sentences
Treetop Trek in List view. Each rule is a sentence you can read.

Why samples are the best teacher

Every sample in 🎮 Samples is a finished game made only with the rules you can make. Nothing is hidden. If you can read its rules, you can make a game like it. Reading them is quicker than guessing.

How to

  1. Click 🎮 Samples in the toolbar and pick one. Chocobreak is the shortest.
  2. Press ▶ Play level and play for a minute, so you know what the game does. Press Esc.
  3. Open the Events tab (⌘3) and click List.
  4. Read from the top. Each block says “When … and … / Do • …”.
  5. When a rule puzzles you, point at a chip in Grid view to see its help sentence, or right-click it and choose Change settings… to see its numbers.

Chocobreak, read out

The whole game is a handful of rules. In order they say: the paddle stops at the sides; the ball bounces off the bricks and smashes them; the ball bounces off the paddle; the ball bounces off the top, left and right; falling off the bottom costs a life; no lives means restart; no bricks means you win.

WhenBall leaves the play area at Bottom
DoSubtract 1 from livesSet position of Ball to (0, -24) from Paddle
WhenThere are no Brick objects left
DoShow You WinStop Ball

Things to look for

Red chips firstMost rules start with a moment, then narrow with a state. See Red rules happen once.
NOTCoin Quest uses “NOT: Hero is falling” to tell a squash from a hurt.
GroupsTreetop Trek keeps its rules in groups so each part is easy to find.
Switches and valuesWing It uses switch 0 to remember “crashed” so you cannot score twice. Expert mode shows them.
Random picks and spawnersStar Defender creates lasers and explosions, and cleans them up when their animation finishes.

Change one thing

Reading is good. Changing is better. Change a number, a sound or a key, play again, and see what happened. A sample is a copy, so you cannot break the original. Save it with a new name if you like your version.

Still stuck?

Try the Chocobreak tutorial, open a sample game and read its rules, or look at the questions people ask.