Sub topic 2
The MDA Framework at a Glance
This chapter gives you the working model of MDA before later chapters take each layer apart. It assumes you have played a range of board, card, or video games, and that you know what game rules and game state are. The Python snippets are short, and you can skim them if you don't read code.
Why a three-layer model
Designers can't build an experience directly. They write rules, and players then produce the experience by playing under those rules. Two things sit between "I wrote a rule" and "the player felt tense": the rules have to run, and a person has to react to what happens.
MDA (Mechanics, Dynamics, Aesthetics) names those steps. It was introduced by Robin Hunicke, Marc LeBlanc, and Robert Zubek as a formal approach to understanding games. It splits a game into three connected layers:
- Mechanics are the rules, algorithms, and data that you write down.
- Dynamics are the run-time behavior that appears when the mechanics operate on player input and on each other.
- Aesthetics are the emotional responses the game evokes in the player.
The framework treats a game as an artifact that produces behavior, and that behavior produces feeling. Each layer is a different place to look when something about the game works or fails.
The three layers in brief
Mechanics
Mechanics are the components of the game at the level of data and algorithms. In a card game they include the deck contents, the shuffle, how many cards you draw, and the rule for who wins a trick. In a racing game they include top speed, steering response, item tables, and any rule that changes speed based on position.
A mechanic is precise. It has parameters, and a designer can change those parameters and see the result. This is the only layer the designer controls directly.
Here is a mechanic from a racing game. A trailing racer gets a speed bonus proportional to the gap behind the leader, up to a cap.
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)
print(racer_speed(10.0, 0.0))
print(racer_speed(10.0, 4.0))
print(racer_speed(10.0, 100.0))The three calls print 10.0 for a leader, 12.0 for a racer four units behind, and 13.0 for a racer so far behind that the cap applies. The function has three parameters you can change: boost_per_unit, max_boost, and the formula itself.
Dynamics
Dynamics describe what happens while the game runs. They are not written in the rulebook. They come from the mechanics acting on player choices and on each other over time.
Examples include:
- Players bluff because a poker hand is hidden information.
- Leads change hands often in a race.
- One player snowballs into an unbeatable position.
- Players form temporary alliances against whoever is ahead.
You can't read a dynamic off a rule. You have to run the game, either with people or with a simulation, and observe it. A dynamic is also a pattern across many moves, not a single event. "One racer passed another" is an event. "Lead changes are frequent" is a dynamic.
Aesthetics
Aesthetics are the emotional responses players have when they interact with the game. The word does not mean graphics or art style here. It means the feeling: tension, curiosity, camaraderie, mastery, immersion, relaxation.
The framework's authors give a working vocabulary of eight kinds of fun: sensation, fantasy, narrative, challenge, fellowship, discovery, expression, and submission. A later chapter covers these in detail. For now, keep in mind that "fun" is not one thing, and a game can aim at several aesthetics at once.
Two directions through the same model
The same three layers are read in opposite orders by designers and players.
| Viewpoint | Starts with | Ends with | What they can touch directly |
|---|---|---|---|
| Designer | Mechanics | Aesthetics | Only mechanics |
| Player | Aesthetics | Mechanics (if at all) | Only their own choices |
A player sits down and has an experience. They feel the aesthetics first. They notice patterns (dynamics) as they play, and some players eventually work out the underlying rules. Many players never think about the mechanics, and that is normal.
The designer works the other way. A designer chooses rules, predicts how those rules will behave, and hopes the behavior produces the intended feeling. The designer's problem is that every step in that chain is a prediction. The mechanics are certain, the dynamics are uncertain, and the aesthetics depend on the people playing.
This gap is why the framework is useful. When a game doesn't deliver, you can ask which link failed. Maybe the mechanics don't produce the dynamic you wanted, or maybe the dynamic occurs but players don't respond to it as you expected.
Tracing one goal through the layers
Suppose the aesthetic goal is challenge, specifically close, tense races. You can write the chain as data, with each layer recorded separately so each can be tested on its own.
design_chain = {
"aesthetic_goal": "challenge: close, tense races",
"target_dynamics": ["lead changes happen often", "no player is ever hopelessly behind"],
"candidate_mechanics": ["catch-up speed boost for trailing racers", "item drops weighted toward trailing racers"],
}
for layer, value in design_chain.items():
print(layer, "=", value)Notice what this structure does. The goal says nothing about speed formulas. The dynamics say nothing about how they are achieved. The mechanics are only candidates, meaning proposals to be tested. If the catch-up boost doesn't produce frequent lead changes, you can replace the mechanic without revising the goal.
You can test the mechanic-to-dynamic link with a small simulation. The one below runs two racers with random base speeds, with and without the boost, and reports two measurements: how many times the lead changed and how large the final gap was.
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))The output is a pair of numbers for each setting. These numbers are a measurement of the dynamics, not a rule you wrote. With the boost on, you should generally see more lead changes and a smaller final gap, but a single seed is only one sample. Later chapters return to why one run is weak evidence and how to run many.
How the layers relate
Three points are worth holding on to.
- Influence flows in one direction, but understanding flows in both. Mechanics produce dynamics, and dynamics produce aesthetics. To figure out why a game feels the way it does, you work backward from the feeling.
- The mapping is many-to-many. One mechanic can feed several dynamics. A catch-up boost may create close races and also make leading feel pointless. One aesthetic can also be reached through different mechanics. Close races could come from the boost, from item weighting, or from a track layout with shortcuts.
- Dynamics are where surprises live. Rules interact. Two simple mechanics can produce behavior that neither suggests alone. The designer's job is to anticipate, observe, and adjust, not to deduce everything in advance.
Common errors
- Treating aesthetics as visuals. In MDA, "aesthetics" means emotional response. A beautiful game with no tension has weak challenge aesthetics, whatever it looks like.
- Skipping the dynamics layer. Going straight from "I want tension" to "add a timer" assumes the timer produces tension. It might produce frustration instead. Check the dynamic.
- Assuming one playtest is evidence. Dynamics vary between sessions and between players. A single play, or a single simulation seed, can mislead.
- Confusing a dynamic with an event. A single comeback is an event. "Comebacks are common" is a dynamic you can measure.
- Assuming players share your view. Players start from the feeling. If you describe a problem in terms of rules ("the boost is too high"), a player will describe it in terms of experience ("I'm always getting robbed at the end"). Learn to translate between the two.
Where this leads
The next chapters examine each layer closely. Mechanics are the rules and algorithms. Dynamics include emergence and feedback loops. Aesthetics are classified using the eight kinds of fun. After that, a worked example traces a design goal through all three layers, and later chapters cover tuning, testing, analyzing existing games, and the limits of the model. This chapter's job is only to give you the map: three layers, two directions, and one habit of asking which link in the chain you are reasoning about.
Exercise
A designer of a card game wants players to feel "fellowship". She adds a rule that every player must pass one card to the player on their left each round. In playtests, players start openly trading hints about what they pass. Identify the mechanic, the dynamic, and the aesthetic. Then say which layer she controlled directly and which she could only predict.
Show answer
The mechanic is the rule that each player passes one card to the left every round. The dynamic is the behavior that emerged while the game ran: players trade hints about their passes. The aesthetic is fellowship, the feeling of working together and social connection. She controlled only the mechanic directly. The dynamic (hint trading) and the aesthetic (fellowship) were predictions that playtesting confirmed, and either could have failed. For example, players might have hidden their cards, which would have been a different dynamic with a different feeling.
Exercise
A racing game has a catch-up boost, and the simulation shows many lead changes. Playtesters still say that "winning feels meaningless". Which link in the mechanics, dynamics, aesthetics chain is probably the problem, and what would you change first?
Show answer
The mechanic did produce the intended dynamic (frequent lead changes), so the break is between the dynamics and the aesthetics. The dynamic undermines the feeling of earned challenge, because players sense that the lead is not a result of their skill. The first change should be to the mechanic, since it is the only layer you control. For example, lower max_boost or boost_per_unit, then re-measure lead changes and gap, and ask playtesters again. The aesthetic goal stays fixed while the mechanics are adjusted.