TExcelTAD
Home › Assets, Tools & Shipping › Accessibility Basics

Accessibility Basics

Accessibility options let more people play your game: players with low vision or colour-vision deficiency, deaf and hard-of-hearing players, players with limited mobility or who use one hand, and players with cognitive or photosensitivity concerns. Many options also help everyone: subtitles in a noisy room, remapping on an unusual keyboard, a "hold to toggle" for a sore wrist. Three cheap features cover a lot of ground, and they are far easier to build in early than to retrofit: remappable controls, good subtitles and not relying on colour alone.

Good references to keep open while designing: the Game Accessibility Guidelines (basic / intermediate / advanced tiers) and Microsoft's Xbox Accessibility Guidelines. Some platforms and laws add requirements for communication features (for example, text and voice chat); check the rules for the platforms you ship on.

Remappable controls

Every action should be bindable to any key or button, with two rules: no conflicts within the same context, and reserved keys (the pause/menu key) that can't be unbound so a player can never lock themselves out. Engines provide the plumbing (Unity's Input System PerformInteractiveRebinding, Unreal's Enhanced Input user settings, Godot's runtime InputMap API; see Unity rebinding and Unreal Enhanced Input), but the rules are game logic:

js · try it yourself
const bindings = {
  gameplay: { jump: "Space", attack: "J", dash: "K", interact: "E", pause: "Escape" },
  menu: { confirm: "Enter", back: "Escape" },
};
const reserved = new Set(["pause"]);

function rebind(context, action, key) {
  if (reserved.has(action)) return `refused: "${action}" can't be rebound`;
  const map = bindings[context];
  const clash = Object.entries(map).find(([a, k]) => k === key && a !== action);
  if (clash) {
    const [other] = clash;
    if (reserved.has(other)) return `refused: ${key} is reserved for "${other}"`;
    map[other] = map[action];                     // swap instead of leaving an action unbound
    map[action] = key;
    return `${action} -> ${key}, ${other} -> ${map[other]} (swapped)`;
  }
  map[action] = key;
  return `${action} -> ${key}`;
}

console.log(rebind("gameplay", "jump", "W"));
console.log(rebind("gameplay", "dash", "J"));
console.log(rebind("gameplay", "attack", "Escape"));
console.log(rebind("gameplay", "pause", "P"));
console.log(bindings.gameplay);
jump -> W
dash -> J, attack -> K (swapped)
refused: Escape is reserved for "pause"
refused: "pause" can't be rebound
{ jump: 'W', attack: 'K', dash: 'J', interact: 'E', pause: 'Escape' }

Swapping on conflict (instead of silently unbinding the other action) is what most players expect. Also offer: hold vs toggle for sprint, aim and crouch; adjustable stick dead zones and sensitivity; no required rapid button mashing (or an option to hold instead); and save bindings with the settings (Settings & Saving).

Subtitles that people can read

Good subtitle practice is well established in film and games:

  • Size adjustable, with a large default; high-contrast text with a background box or outline (opacity adjustable).
  • Speaker names (or colours plus names) when it isn't obvious who is speaking.
  • Short lines: roughly 40 characters per line, at most two lines on screen.
  • Reading speed: on screen long enough to read. Guidance varies; around 15–20 characters per second is a common upper limit for adults (slower for younger audiences).
  • Closed captions describe important sounds: [distant explosion], [footsteps behind you].

A pipeline check against the subtitle file catches lines that are too long or too fast before anyone has to watch them:

python · try it yourself
import textwrap

MAX_CPS = 17          # characters per second
MAX_LINE = 42         # characters per line
MAX_LINES = 2

cues = [  # (start s, end s, speaker, text)
    (1.0, 3.5, "MIRA", "Stay close. The bridge won't hold both of us."),
    (3.6, 4.6, "JONAS", "Then you go first and I'll follow when you reach the other side, okay?"),
    (5.0, 6.2, None, "[the bridge creaks]"),
    (6.5, 12.0, "MIRA", "Jonas! Grab the rope, the one on your left, now, before the whole thing falls!"),
]

for start, end, speaker, text in cues:
    full = f"{speaker}: {text}" if speaker else text
    lines = textwrap.wrap(full, MAX_LINE)
    cps = len(full) / (end - start)
    problems = []
    if cps > MAX_CPS:
        need = len(full) / MAX_CPS
        problems.append(f"{cps:.0f} chars/s, needs {need:.1f} s on screen")
    if len(lines) > MAX_LINES:
        problems.append(f"{len(lines)} lines, split the cue")
    status = "ok" if not problems else "; ".join(problems)
    print(f"{start:5.1f}s {full[:38]:<38}... {status}" if len(full) > 38 else f"{start:5.1f}s {full:<41} {status}")
  1.0s MIRA: Stay close. The bridge won't hol... 20 chars/s, needs 3.0 s on screen
  3.6s JONAS: Then you go first and I'll foll... 77 chars/s, needs 4.5 s on screen
  5.0s [the bridge creaks]                       ok
  6.5s MIRA: Jonas! Grab the rope, the one on... 3 lines, split the cue

Don't rely on colour alone

About 1 in 12 men and 1 in 200 women have some form of colour-vision deficiency, most commonly difficulty telling red from green. Red/green health bars, team colours or "match the green gems" become unplayable. Fixes, in order of preference:

  1. Add a second cue: shape, icon, pattern, position or text alongside the colour (red ✕ vs green ✓, gem shapes that differ).
  2. Choose palettes that work (blue/orange separates well for most deficiencies) and test with a simulator (many engines and image editors have one; so do browser dev tools).
  3. Offer colour-blind modes that remap the critical colours, not a full-screen filter that makes everything worse for everyone else.

Contrast matters for everyone: text and important UI should stand out from what's behind it. The WCAG contrast ratio, designed for the web, is a useful yardstick for UI (4.5:1 for normal text is the common target):

python · try it yourself
def luminance(hex_color):
    r, g, b = (int(hex_color[i:i + 2], 16) / 255 for i in (1, 3, 5))
    def lin(c):
        return c / 12.92 if c <= 0.04045 else ((c + 0.055) / 1.055) ** 2.4
    return 0.2126 * lin(r) + 0.7152 * lin(g) + 0.0722 * lin(b)

def contrast(fg, bg):
    a, b = sorted((luminance(fg), luminance(bg)), reverse=True)
    return (a + 0.05) / (b + 0.05)

pairs = [("subtitle white on black box", "#FFFFFF", "#000000"),
         ("grey hint on dark blue UI", "#7A7F8C", "#1E2A44"),
         ("yellow warning on white", "#FFD400", "#FFFFFF"),
         ("orange on dark grey", "#FF9F1C", "#2B2B2B")]
for name, fg, bg in pairs:
    ratio = contrast(fg, bg)
    print(f"{name:<29} {ratio:5.2f}:1  {'pass' if ratio >= 4.5 else 'FAIL'}")
subtitle white on black box   21.00:1  pass
grey hint on dark blue UI      3.57:1  FAIL
yellow warning on white        1.43:1  FAIL
orange on dark grey            6.90:1  pass

More options worth knowing

  • Text size and UI scale, independent of resolution.
  • Camera shake, motion blur, head bob and flashing toggles; photosensitivity warnings and avoiding rapid full-screen flashes.
  • Difficulty and assist options (slower game speed, aim assist, skip puzzle) without shaming the player for using them.
  • Mono audio and visual sound indicators for players with hearing loss in one ear.
  • Menus readable from the first screen: players must be able to find accessibility options before the intro cinematic.

Test yourself

Why should the pause key be reserved so it can't be unbound?

  1. It's a platform rule for all games
  2. So a player can never lock themselves out of the menu that lets them fix their bindings
  3. It saves memory
  4. Pause is not an action

What is the best first fix for a red/green health indicator?

  1. A full-screen colour filter
  2. Add a second cue such as a shape, icon or text, not colour alone
  3. Make it brighter
  4. Remove it

A subtitle of 60 characters is on screen for 2 seconds. Is that likely readable?

  1. Yes
  2. No: 30 characters per second is well above common limits of about 15-20
  3. Only in English
  4. Only with speaker names