Sub topic 3
Find the core loop you need to teach
This chapter assumes you have played a range of games and know the term "core loop" at an introductory level. It also assumes you can read short code samples. Here you will learn how to identify the loop your onboarding has to teach, break it into teachable parts, and rank those parts so the first minutes cover only what matters.
Why the core loop sets the scope
A core loop is the short cycle of actions a player repeats most often. In a platformer it is roughly: see a hazard, move and jump, land, collect or progress. In a deck builder it is: draw cards, play them, see the result, and add a card to the deck.
Onboarding fails most often because it teaches the wrong things, not because it teaches badly. A tutorial that explains the inventory screen, the crafting menu, and the lore codex in the first five minutes has not taught the loop. The player may leave knowing where the menus are and still not know how to play.
Your goal is to give the player enough skill to complete one loop on their own, then run it again with a small change. Everything else can wait.
Anatomy of a loop
Most loops can be described with the same four parts.
| Part | Question it answers | Platformer example |
|---|---|---|
| Goal | What am I trying to do right now? | Reach the flag |
| Action | What do I do about it? | Run, jump, attack |
| Feedback | What happened as a result? | The character lands, an enemy flashes and dies |
| Reward | Why was that worth doing? | Progress, a coin, a new area |
A player has learned the loop when they can state, in their own words or through their behavior, what the goal is, which action serves it, and how they know it worked. Check each part separately. A common gap is the reward: players who see no reason to repeat an action stop repeating it.
Loops come in layers
Many games have more than one loop, nested at different time scales. A common split is:
- Micro loop (seconds): move, aim, shoot, dodge.
- Mid loop (minutes): clear a room, fight a boss, finish a level.
- Macro loop (hours): earn upgrades, unlock areas, build a character.
Teach the micro loop first. The player cannot appreciate a mid loop if the basic actions feel confusing. Introduce the mid loop when the micro loop is comfortable, and mention the macro loop only when the player first benefits from it, such as when they first earn a reward they can spend.
The mistake to avoid is front-loading the macro loop. A skill tree explanation in minute two gives the player no context, because they have not yet felt what the upgrades would improve.
Finding the loop in your own game
You can discover the loop with evidence instead of opinion. Three methods work well together.
- Watch your own telemetry or recordings. Count which actions players perform most often in a typical session. The most frequent actions that also advance progress are your loop.
- Write the one-sentence pitch. Complete the sentence "The player repeatedly __ in order to __." If you need three "and" clauses, you are describing several loops, not one.
- Do a removal test. Imagine deleting a mechanic. If the game is still playable and still recognizable, the mechanic is not part of the core loop.
Run these on the real build, not on the design document. Design documents describe intent. Playtest recordings show what players actually do, and the two often differ.
From loop to a teaching list
Once you know the loop, list every skill the player needs to run it. Then sort the list by how much each skill is needed. A simple three-bucket sort works.
- Required: the player cannot progress without it. Teach it in the first minutes, through play.
- Useful: it makes play easier or more rewarding but is not blocking. Teach it when the situation first calls for it.
- Optional: it serves advanced or specialist play. Make it discoverable, and never force it.
A platformer's list might look like this: move (required), jump (required), attack (required), double jump (useful), wall slide (useful), parry (optional). The first three go into the opening. The next two become the "twist" in later levels, covered in a later chapter. Parry waits for players who go looking for depth.
Dependencies decide the order
Some skills only make sense after others. You cannot meaningfully teach a jump-attack before jumping and attacking separately. Write the dependencies down as a graph and teach in dependency order.
from graphlib import TopologicalSorter
# Each skill maps to the skills it depends on.
skills = {
"move": set(),
"jump": {"move"},
"attack": {"move"},
"jump_attack": {"jump", "attack"},
"double_jump": {"jump"},
}
order = list(TopologicalSorter(skills).static_order())
print(order)The output is one valid teaching order, such as ['move', 'jump', 'attack', 'double_jump', 'jump_attack']. Several orders can be valid. Among them, put the skill that serves the most important part of the loop first. The standard-library graphlib module raises CycleError if two skills depend on each other, which is a useful warning that your breakdown is wrong. A real cycle usually means you have bundled two ideas into one skill and need to split it.
Confirming the player learned it
Teaching a skill is not the same as the player having learned it. The tutorial example from the spine shows the practical rule: a step completes when the player performs the action, not when they dismiss a message. Each skill on your list therefore needs an observable completion event.
type GameEvent = { type: string; [key: string]: unknown };
type TutorialStep = {
id: string;
isComplete: (event: GameEvent) => boolean;
hints: string[]; // ordered from subtle to explicit
};
class TutorialRunner {
private index = 0;
private hintLevel = 0;
private idleMs = 0;
constructor(
private steps: TutorialStep[],
private hintAfterMs = 8000,
) {}
get current(): TutorialStep | undefined {
return this.steps[this.index];
}
// Call for every gameplay event; the step advances when the player does the thing.
onEvent(event: GameEvent): void {
const step = this.current;
if (step && step.isComplete(event)) {
this.index += 1;
this.hintLevel = 0;
this.idleMs = 0;
}
}
// Call once per frame; returns a hint to show, or null.
tick(dtMs: number): string | null {
const step = this.current;
if (!step) return null;
this.idleMs += dtMs;
if (this.idleMs < this.hintAfterMs) return null;
this.idleMs = 0;
if (step.hints.length === 0) return null;
const hint = step.hints[Math.min(this.hintLevel, step.hints.length - 1)];
this.hintLevel += 1;
return hint;
}
}
const steps: TutorialStep[] = [
{
id: 'jump',
isComplete: (e) => e.type === 'jumped',
hints: ['Something is blocking the path.', 'Try jumping over the gap.', 'Press Space to jump.'],
},
];
const runner = new TutorialRunner(steps);
runner.onEvent({ type: 'jumped' });Here the step list is the teaching list from the previous section, expressed as data. If a skill on your list has no event that proves the player used it, you cannot tell whether it was learned. That is a design smell. Either add an event or reconsider whether the skill is concrete enough to teach.
Common errors
- Teaching the interface instead of the loop. Menus and HUD explanations feel productive to write but do not build skill. Teach them when the player needs them.
- Mistaking the most visible feature for the core. A game with a large crafting system may still be mostly about combat. Use telemetry, not marketing copy.
- Bundling skills. "Dodge-roll through the fire to hit the weak point" is three ideas. If the player fails, you cannot tell which one they missed.
- Teaching a loop the game does not actually reward. If the tutorial praises careful play but the game rewards speed, players will unlearn it quickly and feel misled.
- Skipping the reward. A loop without a visible payoff teaches mechanics but not motivation.
Putting it together
Work through this sequence for any new game:
- Gather evidence of what players repeat most.
- Write the one-sentence loop and name its goal, action, feedback, and reward.
- Separate micro, mid, and macro loops.
- List the skills the loop needs and sort them into required, useful, and optional.
- Order the required skills by dependency.
- Attach an observable completion event to each one.
The result is a short, ordered, testable list. The next chapter uses that list to design the first few minutes.
Exercise
A puzzle game's players mostly drag tiles, match three or more, and watch chain reactions. The game also has a shop, daily quests, and a collection album. You compute skill dependencies: "chain_reaction" depends on "match", and "match" depends on "drag". Which skills belong in the required bucket for the opening, and what order do you teach them in? Where do the shop, quests, and album go?
Show answer
Required: drag, match, and chain reaction, taught in that order because each depends on the one before. The chain reaction is the loop's feedback and reward, so players should see it early. The shop, daily quests, and album belong to the macro loop and sit in the useful or optional buckets. Introduce each only when the player first has a reason to use it, for example the shop after they first earn currency.
Exercise
Your tutorial teaches "parry" as the second step. Telemetry shows only 4% of players ever parry in the first ten hours, yet 60% of players quit during the parry step. What does this suggest, and what should you change?
Show answer
Parry is not part of the core loop that players actually use, so it is an optional skill, and forcing it creates a barrier. Remove it from the required sequence, teach the skills players use most often (such as the main attack and dodge), and leave parry discoverable for players who want depth.