Sub topic 9
Separating Tuning Values from Rules
Assume you understand basic game-team roles, can read a simple feature spec, and have seen a production workflow such as sprints or milestones.
A feature spec contains two different kinds of information:
- Rules describe what the feature does and when it is allowed to act.
- Tuning values are numbers that control how the feature feels.
Keep these categories separate. Rules should remain stable while designers adjust values during playtesting. If a designer changes dash speed, the team should not need to rewrite the rule that explains when a dash starts.
Rules describe behavior
A rule should be clear without depending on a particular number. For example:
- Pressing Dash starts a dash in the movement-input direction.
- With no movement input, the dash uses the character's facing direction.
- A dash cannot start while its cooldown is active.
- Taking damage ends the current dash.
These statements define behavior. They identify inputs, conditions, and results. They do not say that the dash lasts exactly 0.2 seconds or moves at exactly 18 units per second.
A tuning value belongs in a separate section or data file:
# dash_tuning.yaml
dash:
speed: 18.0
duration: 0.2
cooldown: 0.8
air_dashes_per_jump: 1The code or implementation should read these values rather than duplicate them in several places. The unit for each value must be explicit in the spec. For example, state that speed uses game units per second and that duration and cooldown use seconds.
Decide what belongs in each category
Use this test: if the value changes, does the meaning of the feature change?
| Information | Category | Example |
|---|---|---|
| What starts the feature | Rule | Pressing Dash starts the dash |
| Whether the feature is available | Rule | Dash is blocked during cooldown |
| Movement amount per second | Tuning | `speed: 18.0` |
| Length of the movement burst | Tuning | `duration: 0.2` |
| Number of air dashes | Tuning or rule parameter | `air_dashes_per_jump: 1` |
Some values sit between the categories. A value can be a rule parameter when it changes a permitted action rather than only its feel. “The player can perform one air dash per jump” is a rule. The number 1 is its configurable parameter. Label this relationship clearly.
Use tuning data during iteration
A good tuning section records the value, unit, purpose, and acceptable range.
dash:
speed:
value: 18.0
unit: "game units per second"
purpose: "Cross a short gap and evade attacks"
acceptable_range: [14.0, 24.0]
duration:
value: 0.2
unit: "seconds"
purpose: "Create a brief, readable movement burst"
acceptable_range: [0.1, 0.3]The range helps reviewers understand which changes are normal playtesting and which require a design discussion. Acceptance criteria should test the rule, while automated or playtest checks can evaluate whether the chosen values produce the intended experience.
Exercise
Why should “the dash cannot start during cooldown” remain a rule instead of becoming a tuning note?
Show answer
It defines permitted behavior. A designer may change the cooldown length, but the feature must still prevent a new dash while that cooldown is active.