Sub topic 3
Verbs versus Mechanics, Abilities, and Inputs
This chapter assumes you can already define a player verb as an action the player chooses to perform, and that you know what a core loop is. It also assumes you can read short Python examples. Here you separate the verb from three neighboring terms that are often used as if they meant the same thing: mechanic, ability, and input.
Why the vocabulary matters
Design conversations go wrong when people use one word for several things. Suppose a teammate says, "Jump is broken." They might mean any of these:
- The button does not respond (an input problem).
- The character does not rise high enough (a tuning problem).
- Jumping costs too much stamina to be useful (a cost problem).
- Jumping onto crates has no effect (a verb-object problem).
Each of these has a different owner and a different fix. Naming the layer first saves time.
Four layers, four questions
Each term answers a different question about the same moment of play.
| Term | Question it answers | Example (jump) |
|---|---|---|
| Input | What physical action does the player perform on the device? | Press the south face button |
| Verb | What does the player choose to do in the game world? | Jump |
| Mechanic | What rule or system produces the result? | Gravity, jump impulse, ground check, air control |
| Ability | What may this character do right now, and under what conditions? | "Can jump twice after picking up the boots" |
The layers are connected, and a single verb touches all of them. One way to read the chain is "an input requests a verb, the verb runs under mechanics, and abilities decide whether the verb is available."
The verb
A verb is the player's intention expressed in the vocabulary of the game world. It is a choice, and it has a name that a player would use when describing their play: "I grabbed the crate and threw it."
A good test is whether the player can pick the verb as a decision. "Jump" passes, because the player decides when to jump. "Apply gravity" fails, because the player never decides to do it.
The input
An input is a physical event on a device: a key press, a button, a stick direction, a touch, a voice command. Inputs are not verbs, for two reasons.
- One verb can have many inputs. Jump might be a button on a gamepad, the space bar on a keyboard, and a swipe up on a phone. The verb is the same in all three.
- One input can trigger many verbs. A single button may mean "grab" near a crate, "pull" near a lever, and "talk" near a character. This is called a context-sensitive input.
Because of this, counting buttons does not tell you how many verbs a game has. A game with two buttons can have a dozen verbs, and a game with twelve buttons can have two verbs bound to redundant keys.
The mechanic
A mechanic is a rule or system that processes actions and state. Verbs are what the player brings to the mechanics. Mechanics also run without any player choice. Gravity, enemy patrol routes, and a day and night cycle are mechanics, yet none of them is a verb.
The relationship is many to many:
- One mechanic can serve several verbs. A physics system serves jump, throw, and push.
- One verb can depend on several mechanics. Throwing uses physics, a stamina system, and a hit detection system.
A practical rule: if the player can say "I do X" about it, it is likely a verb. If it happens whether or not the player does anything, it is a mechanic that is not a verb.
The ability
An ability is a grant of permission, usually attached to a character, item, or progression state. It says whether a verb is available and with what properties. Abilities often come from upgrades, equipment, or story events.
This leads to a common confusion. Many games use "ability" for the whole action ("the dash ability"). That is acceptable in casual speech, but when you design, separate two questions:
- Is the verb in the game at all? ("Dash" exists as a verb.)
- Does this character have access to it now? (The player has not found the dash boots yet.)
Gating a verb behind an ability does not create a new verb. It controls when the player may use an existing one. This distinction matters in the audit chapter, where you count verbs. A game with one dash verb and three upgrades to it has one verb with four states, not four verbs.
Seeing the layers in code
The verb table from the topic's running example can be extended to show where each layer lives. The verb holds its name, cost, and cooldown. The ability set decides availability. The input map connects physical events to verb names. The mechanics are the functions that carry out the outcome.
from dataclasses import dataclass
@dataclass(frozen=True)
class Verb:
name: str
stamina_cost: int
cooldown: float # seconds
VERBS = {
"move": Verb("move", 0, 0.0),
"jump": Verb("jump", 10, 0.2),
"grab": Verb("grab", 5, 0.5),
"throw": Verb("throw", 15, 1.0),
}
# Input layer: physical events mapped to verb names
INPUT_MAP = {
"space": "jump",
"e": "grab",
"q": "throw",
}
# Ability layer: which verbs this character may use right now
abilities = {"move", "jump", "grab"}
# Mechanic layer: a rule that serves a verb
def apply_jump_impulse(velocity_y):
return velocity_y + 9.0
def handle_input(event, stamina, now, last_used, velocity_y):
verb_name = INPUT_MAP.get(event)
if verb_name is None:
return "unmapped_input", stamina, velocity_y
if verb_name not in abilities:
return "locked", stamina, velocity_y
verb = VERBS[verb_name]
last = last_used.get(verb.name, float("-inf"))
if now - last < verb.cooldown or stamina < verb.stamina_cost:
return "not_ready", stamina, velocity_y
last_used[verb.name] = now
stamina -= verb.stamina_cost
if verb_name == "jump":
velocity_y = apply_jump_impulse(velocity_y)
return "done", stamina, velocity_y
last_used = {}
print(handle_input("space", 50, 1.0, last_used, 0.0)) # ('done', 40, 9.0)
print(handle_input("space", 40, 1.1, last_used, 0.0)) # ('not_ready', 40, 0.0)
print(handle_input("q", 40, 2.0, last_used, 0.0)) # ('locked', 40, 0.0)
print(handle_input("x", 40, 2.0, last_used, 0.0)) # ('unmapped_input', 40, 0.0)Each result string corresponds to a different layer failing. unmapped_input is an input problem. locked is an ability problem. not_ready is a verb constraint. A bug in apply_jump_impulse would be a mechanic problem. This separation is what lets you debug and design each layer independently.
Common errors
Treating an input as a verb. A designer lists "press A" and "hold B" as the game's verbs. This hides what the player is actually deciding. List the verbs in world terms: "vault," "brace," "reload."
Counting upgrades as new verbs. A longer jump or a faster dash modifies a verb's properties. It is not a new verb. Count a new verb only when it creates a new kind of decision or a new kind of outcome.
Counting mechanics as verbs. A stealth system with a visibility meter is a mechanic. The verbs in it might be "crouch," "hide," and "distract." The meter only reports the result.
Calling a context-sensitive input a single verb. One "action" button that opens doors, picks up items, and starts conversations maps to three verbs. Design and test each, because each has its own preconditions and feedback.
Merging verbs because they share a mechanic. "Push" and "throw" both use physics, but they ask different questions of the player. Shared implementation does not make them one verb.
Splitting a verb because it has several inputs. If tapping and holding the same button gives a short or long jump, you may have one verb with a parameter (hold time), not two verbs. Decide by asking whether the player experiences two separate choices or one choice with a degree.
A worked classification
Take a short description of a game: "The player pushes a stick to run, presses a button to leap over gaps, and collects boots that let them leap a second time in mid-air. Gravity pulls the character down, and spikes hurt on contact."
- Inputs: stick push, button press.
- Verbs: run, leap.
- Mechanics: gravity, spike damage, ground detection for the leap.
- Abilities: double leap, granted by the boots.
Note that "double leap" is not listed as a verb. It is a modification of the existing leap verb, unlocked by an ability. If the second leap had a different effect, such as a dive that damages enemies below, it would count as a new verb because it creates a new kind of decision.
Decision criteria for borderline cases
When a term is hard to place, use these checks in order.
- Can the player choose to do it, and would they name it in a sentence? If not, it is not a verb.
- Does it appear in the verb table with its own precondition, cost, and outcome? If it fits as a row, it is a verb. If it fits better as a column value (a different cost or cooldown), it is a variant.
- Would removing it change the set of decisions the player faces, or only the speed or comfort of an existing decision? The first suggests a verb. The second suggests a tuning change.
Summary of the layers
- Inputs are physical events and can be remapped without changing the game's design.
- Verbs are player choices expressed in world terms. They are the unit you count, specify, and audit.
- Mechanics are the rules that resolve verbs and also run without the player.
- Abilities are permissions that make verbs available or change their properties.
Exercise
A platformer has a single "action" button. Near a crate it picks the crate up. Near a lever it pulls the lever. Near a shopkeeper it opens a shop. Later the player buys "strong arms," which lets them lift heavier crates. How many verbs does this describe, and what is "strong arms"?
Show answer
Four verbs: pick up, pull, talk (or open shop), and the movement verbs are separate and not counted here. Specifically the single button maps to three verbs (pick up, pull, talk), because each has its own target, precondition, and feedback. "Strong arms" is an ability. It changes a property of the existing pick up verb (which crates it works on) and does not add a verb.
Exercise
Using the code in this chapter, a player presses "q" and nothing happens. Name the layer responsible for each of these causes: (a) "q" is not in INPUT_MAP, (b) "throw" is not in abilities, (c) stamina is 3, (d) the thrown object does not travel far enough.
Show answer
(a) Input layer, since the physical event is not mapped to any verb. (b) Ability layer, since the character is not permitted to use the verb yet. (c) Verb constraint, since the stamina cost of 15 is not met. (d) Mechanic layer, since the physics rule that resolves the throw is producing the wrong result.
Exercise
A designer proposes adding "long jump" as a new verb. It uses the same button as jump, held for longer, and uses the same physics. Give one reason to treat it as a variant and one condition under which it would deserve its own verb.
Show answer
It is a variant if the player experiences one choice with a degree (how long to hold), and the cost, targets, and outcome are the same kind. It deserves its own verb if it creates a new kind of decision, for example if it has a different cost and cooldown, works on different targets, or has a distinct outcome such as breaking through fragile walls that a normal jump cannot.