Sub topic 5
Writing Mechanics and Rules Clearly
Assume you understand the roles of designers, engineers, artists, and QA, and have seen a game feature move through a sprint or milestone. This chapter focuses on the working model for turning a mechanic into rules that every discipline can interpret the same way.
Start with observable behavior
A mechanic is a player-facing action or system behavior, such as jumping, reloading, climbing, or dashing. A rule states what the game does under specific conditions. Good rules describe behavior that someone can observe, implement, or test.
Avoid intent-only statements:
- “The dash should feel fast.”
- “The player can escape danger.”
- “The system handles input smoothly.”
These statements may belong in the design intent section, but they do not tell the team what to build. Replace them with measurable behavior:
- “When the player presses Dash while the ability is ready, the player moves in the selected direction for 0.2 seconds.”
- “The dash cannot start while its cooldown is active.”
- “Taking damage ends the dash immediately.”
Name the actor, trigger, condition, action, and result. If one of these is missing, readers may fill the gap with different assumptions.
Separate rules from tuning
Rules define relationships and limits. Tuning values define numbers that designers may adjust during playtesting.
| Rules | Tuning values |
|---|---|
| A dash cannot start during cooldown. | Cooldown: 0.8 seconds |
| Damage cancels an active dash. | Dash speed: 18 units per second |
| A player gets one air dash per jump. | Dash duration: 0.2 seconds |
This separation keeps the specification stable while the team experiments with values. Put each value in a named tuning section or data file. Include units and explain whether the value is a limit, default, or starting point.
Describe states and transitions
Many mechanics behave differently depending on state. A state is the condition the feature is currently in, such as Ready, Active, Cooldown, or Disabled. A transition is the event that moves the feature from one state to another.
For a dash, the model might be:
For every transition, state:
- What event causes it.
- What conditions must be true.
- What the player sees or controls.
- What happens to timers, movement, animation, and effects.
Cover the boundaries
Most implementation disagreements occur at boundaries:
- What happens when the player presses the button twice?
- Does a dash work during an attack, in midair, or while carrying an object?
- Does hitting a wall stop movement, slide along the wall, or deal damage?
- If damage and the dash ending occur on the same frame, which result wins?
- What happens when the feature is disabled or the player changes scenes?
List an explicit rule or mark the question as unresolved. Do not hide uncertainty inside vague phrases such as “as appropriate.”
Common errors
- Mixing rules with goals: “The dash is exciting” is not a mechanic rule.
- Using undefined terms: define “ready,” “active,” “heavy attack,” or “near a wall.”
- Omitting priority: state which effect wins when events happen together.
- Combining several behaviors in one sentence: give each rule one main responsibility.
- Describing only the normal path: include blocked inputs, interruptions, and unavailable states.
Exercise
Rewrite this rule so it is testable: “The player can dash when it feels safe.”
Show answer
“When the player presses Dash and the dash is ready, the player starts a dash. The dash is not ready during its cooldown or while the player is stunned.”