Sub topic 3
Feedback loops: positive, negative, and catch-up mechanics
This chapter assumes you know what game state is, can read simple Python, and have seen the three MDA layers (mechanics, dynamics, aesthetics) in an earlier chapter.
Feedback loops
A feedback loop is a rule whose output changes the input to that same rule. A positive loop amplifies a difference: the leader gets more resources, so it pulls further ahead. A negative loop reduces a difference: the trailing player gets help, so the gap narrows. A catch-up mechanic is a negative loop aimed at the player who is behind.
Catch-up mechanic as code
def racer_speed(base_speed, gap_behind_leader, boost_per_unit=0.05, max_boost=0.3):
"""Mechanic: a trailing racer gets a speed bonus proportional to the gap, capped at max_boost."""
gap = max(gap_behind_leader, 0.0)
boost = min(gap * boost_per_unit, max_boost)
return base_speed * (1 + boost)Worked example: from a design goal to rules
Start with the aesthetic goal: close, tense races. Work backward. Players need lead changes to happen often, so the dynamic is frequent lead changes. The mechanic that supports it is the catch-up boost above.
Tuning a game by changing mechanics and observing dynamics
Tune one parameter at a time. Raising boost_per_unit makes catch-up stronger, which usually increases lead changes but can make races feel random. Lowering max_boost limits how strong the catch-up can get, which protects the leader from being overtaken too easily.
Checking dynamics with playtests and simulation
A playtest shows what the dynamic feels like. A simulation measures it. The function below runs the same race with and without the catch-up mechanic and counts lead changes.
import random
def simulate_race(catch_up, steps=100, seed=1):
rng = random.Random(seed)
pos = [0.0, 0.0]
leaders = []
for _ in range(steps):
for i in range(2):
gap = max(pos[1 - i] - pos[i], 0.0)
base = rng.uniform(0.8, 1.2)
boost = min(gap * 0.05, 0.3) if catch_up else 0.0
pos[i] += base * (1 + boost)
leaders.append(0 if pos[0] > pos[1] else 1)
lead_changes = sum(1 for a, b in zip(leaders, leaders[1:]) if a != b)
return lead_changes, abs(pos[0] - pos[1])
for flag in (False, True):
print("catch_up =", flag, "->", simulate_race(flag))Compare the two printed results. If catch-up does not raise the lead-change count, the mechanic is not producing the intended dynamic.
Analyzing an existing game with MDA
To analyze a game you did not design, list its mechanics first. Then observe play and note the dynamics, such as who leads late and how often. Last, name the aesthetics players report, such as tension or mastery.
Limits of MDA and models that extend it
MDA treats the designer's rules as the starting point, but it says little about how individual players interpret those rules. Later models add layers for player goals and context, which explain why the same rules feel different to different people.
Exercise
Exercise
If maxboost is set to 0.0 in racerspeed, what happens to the catch-up effect?
Show answer
The boost is always 0, so racerspeed returns basespeed unchanged. The catch-up mechanic has no effect, and the race behaves like the version without catch-up.