Sub topic 4
A template you can reuse
This chapter assumes you have read the earlier chapters on the purpose of a spec, its audience, and design intent. It also assumes you know how a game team splits into design, engineering, art, audio, and QA, and that you have seen a sprint or milestone plan.
Why use a template at all
A template is a fixed list of section headings that every feature spec in a project uses. It does three jobs.
- It stops the writer from forgetting a topic. Edge cases and open questions are the usual casualties.
- It lets readers find things. An engineer who wants the tuning values knows which heading to jump to.
- It makes reviews faster. Reviewers compare a spec against the template and see what is missing.
A template is not a form to fill in mechanically. Its purpose is to prompt questions. A section may be short, or marked "None", but it should not be absent without a reason.
The sections and what each one answers
Each section answers one question for the reader. If you cannot say which question a section answers, it probably does not belong in the template.
| Section | Question it answers | Main readers |
|---|---|---|
| Status | Is this draft, approved, or changed since I last read it? | Everyone |
| Design intent | What should the player experience, and how will we judge it? | Everyone |
| Scope | What is in this spec, and what is deliberately left out? | Producers, engineers |
| Rules | What exactly happens, step by step? | Engineers, QA |
| Edge cases | What happens when things collide or go wrong? | Engineers, QA |
| Tuning values | Which numbers can be adjusted, and where do they live? | Designers, engineers |
| Acceptance criteria | How do we prove the feature works? | QA, reviewers |
| Open questions | What is still undecided, and who decides? | Reviewers, owner |
The order matters. The sections move from why, through what, to how we check. A reader who stops after Scope still knows the purpose and boundaries of the feature.
A complete example: the Dash spec
The following spec is deliberately short. It shows the template at its smallest useful size.
# Feature: Dash
## Status
Draft | Owner: Gameplay Design | Reviewers: Engineering, Animation, QA
## Design intent
Give the player a short burst of movement to avoid attacks and cross gaps, so that movement feels responsive and skillful.
## Scope
In: ground dash, air dash (one per jump).
Out: dash attacks, upgrades.
## Rules
1. Pressing the Dash button starts a dash in the direction of movement input.
2. If there is no movement input, the dash goes in the facing direction.
3. The player cannot dash while a dash cooldown is active.
## Edge cases
- Dashing into a wall ends the dash immediately.
- Taking damage during a dash cancels the dash.
## Tuning values
See dash_tuning.yaml.
## Acceptance criteria
See the scenarios below.
## Open questions
- Can the player dash while carrying an object?Several choices in this example are worth copying.
- Status names an owner and reviewers. Anyone with a question knows whom to ask.
- Design intent is one sentence with a purpose clause. "So that movement feels responsive and skillful" gives reviewers something to judge the rules against.
- Scope lists what is out. "Dash attacks" is not forgotten. It is excluded on purpose, so nobody builds it by assumption.
- Rules are numbered. A tester can write "rule 3 fails" and everyone knows which line is meant.
- The open question is stated, not hidden. The spec does not pretend the carrying case is solved.
Keeping numbers out of the rules
The Rules section says a cooldown exists. It does not say how long the cooldown is. The number lives in a separate tuning file.
# dash_tuning.yaml
dash:
speed: 18.0 # units per second
duration: 0.2 # seconds
cooldown: 0.8 # seconds
air_dashes_per_jump: 1This split has a practical payoff. During playtesting, a designer may change the cooldown from 0.8 to 0.6 many times. If the number were written into rule 3, the spec would need an edit and a review each time, and the text could easily drift out of sync with the game. With the split, the rule stays stable and only the data file changes.
Units belong next to the numbers. "Speed: 18.0" is ambiguous. "Units per second" is not.
Acceptance criteria in the same document
The template points to scenarios at the end of the document. Each scenario describes one behavior that a tester can observe.
Feature: Dash
Scenario: Dash in the input direction
Given the player is on the ground and the dash is not on cooldown
When the player presses Dash while holding right
Then the player moves right at the dash speed for the dash duration
Scenario: Dash is blocked during cooldown
Given the player has dashed less than the cooldown time ago
When the player presses Dash
Then no dash starts
Scenario: Damage cancels a dash
Given the player is dashing
When the player takes damage
Then the dash ends immediatelyNotice that the scenarios refer to "the dash speed" and "the cooldown time", not to 18.0 or 0.8. They stay correct when tuning changes. Each scenario traces back to a rule or edge case: the first to rules 1 and 2, the second to rule 3, the third to the damage edge case.
Adapting the template
The Dash template is a starting point. Real projects add sections when a feature needs them. The spine of this tutorial covers several you may add later: UI and controls, content requirements for art, audio, and localization, dependencies and constraints, and telemetry.
Use these guidelines when you adapt it.
- Keep the core fixed across the project. Status, intent, scope, rules, and acceptance criteria should appear in every spec, so readers always know where to look.
- Add optional sections per feature type. A UI feature needs a screen flow. A combat ability needs timing diagrams. A system with no art needs no art section.
- Write "None" instead of deleting a section. A reader can then tell "nothing to report" from "the author forgot to think about it."
- Version the template itself. If the team changes headings, record it, so older specs are not mistaken for incomplete ones.
Common errors when using a template
- Filling sections with filler. "Handle edge cases appropriately" answers nothing. Name the case and the result.
- Mixing levels. Putting a step-by-step rule under Design intent, or a goal under Rules, makes both harder to review.
- Duplicating numbers. The same cooldown written in the rules, the scenarios, and the tuning file will diverge. Keep the number in one place.
- Leaving Status stale. A spec marked "Draft" long after the feature ships misleads new team members.
- Hiding open questions in prose. If a decision is missing, list it under Open questions with an owner. Otherwise an engineer will make the decision silently.
Summary
A reusable template fixes the order and purpose of sections: Status, Design intent, Scope, Rules, Edge cases, Tuning values, Acceptance criteria, and Open questions. Keep numbers in a tuning file, keep criteria independent of those numbers, and add sections only when a feature needs them.
Exercise
A teammate's Dash spec says in the Rules section: "The player cannot dash again for 0.8 seconds after a dash." The cooldown is also written as 0.8 in the acceptance criteria and in dash_tuning.yaml. Playtesting shows that 0.6 feels better. Which parts of the spec need to change if the team follows the template in this chapter, and what should the teammate rewrite?
Show answer
Only dash_tuning.yaml should need to change. The teammate should rewrite the rule to say "The player cannot dash while a dash cooldown is active" and the criteria to say "less than the cooldown time ago". That way the number lives in one place, and the rule and criteria stay correct when the value changes from 0.8 to 0.6.
Exercise
You are writing a spec for a new "Grapple hook" feature, and you do not yet know whether the hook can attach to moving platforms. In which section do you record this, and why not leave it out until it is decided?
Show answer
Record it under Open questions, ideally with an owner who will decide. Leaving it out would make the spec look complete, and an engineer would have to guess or decide silently. Listing it makes the gap visible so it can be resolved in review before the code is written.