Sub topic 8
Levels as Lessons: Introduce, Practice, Twist
Assume you understand a game's core loop and can describe its main player actions. You should also be comfortable with basic level scripting. This chapter focuses on turning a level into a short lesson rather than a sequence of obstacles.
The introduce, practice, twist pattern
A teaching level should answer three questions in order:
- What is the new mechanic?
- Can the player use it safely?
- Can the player recognize when it applies in a new situation?
The introduce, practice, twist pattern gives each question its own space.
| Stage | Player experience | Design goal |
|---|---|---|
| Introduce | The mechanic appears in a low-risk situation | Build a usable mental model |
| Practice | The player repeats the mechanic with small variations | Build control and confidence |
| Twist | The mechanic combines with a new condition | Test understanding, not memory |
During the introduce stage, remove distractions. If the lesson teaches jumping, use a visible gap with a safe floor below it. The player should connect the input, the movement, and the result without also managing enemies, a timer, or a complex camera.
During practice, vary one factor at a time. Make the gap wider, change the approach angle, or add a moving platform. Do not change all three together. A failure should tell the player what they have not mastered.
The twist should reuse the mechanic but change its meaning. A jump that first crossed a gap might later avoid an enemy or reach a higher route. The player must transfer the idea to a new context. Keep the cost of failure low while this transfer is happening.
Structure the level as a sequence
A useful lesson flow looks like this:
Place the first interaction soon after the level begins. Let the player act before displaying an explanation. The environment can point toward the intended action through shape, lighting, animation, or the placement of a reward.
Give the player a recovery path. A missed jump might return them to a nearby platform instead of restarting the whole level. This preserves the lesson's rhythm and makes experimentation affordable.
Make the lesson measurable in code
Track completion by the action that demonstrates understanding. Do not complete a jump lesson because the player opened a message or walked past the gap.
type GameEvent =
| { type: "jumped"; distance: number }
| { type: "landed"; surface: string }
| { type: "opened_hint" };
type Lesson = {
id: string;
complete: (event: GameEvent) => boolean;
};
const jumpLesson: Lesson = {
id: "cross-first-gap",
complete: (event) =>
event.type === "landed" &&
event.surface === "far-platform" &&
event.type !== "opened_hint",
};
function applyEvent(lesson: Lesson, event: GameEvent): boolean {
return lesson.complete(event);
}
const result = applyEvent(jumpLesson, {
type: "landed",
surface: "far-platform",
});
console.log(result); // trueIn a production game, the event would usually include a level identifier or checkpoint identifier. That prevents a later jump from incorrectly completing an earlier lesson.
Common errors
- Introducing the mechanic and the twist in the same encounter.
- Using punishment that prevents the player from trying again.
- Adding text that explains an action the environment already communicates.
- Measuring progress by menu clicks instead of demonstrated behavior.
- Changing several variables at once during practice.
- Repeating the mechanic without requiring the player to adapt it.
Exercise
A level teaches blocking. The player blocks a slow training attack, then faces three fast attacks, a moving enemy, and a poison floor at once. What should you change?
Show answer
Keep the first practice variation focused. Add only one new factor, such as a faster attack. Introduce the moving enemy and poison floor in later encounters or in a separate lesson.