Evaluate a browser game's accessibility and usability. An automatic audit script (page language, zoom, control names, touch target sizes, keyboard reach, text contrast and size, image alt text, autoplay, canvas descriptions, reduced-motion support) on desktop and phone sizes with a Markdown report; color-blind and grayscale screenshot simulations; tested color tools (WCAG contrast, nearest pass...
Download skill (.zip) Files on GitHubGame accessibility audit
1. Automatic checks
python3 scripts/a11y-audit.py http://localhost:8080 --out audit --sizes desktop,phone [--click "#play"]
Writes audit/REPORT.md (fails, warnings, info) and screenshots with color-blind and grayscale versions. Exit code 1 when
anything fails. It only sees HTML; canvas-drawn UI needs the manual checklist.
WebGL games: don’t run it in the GPU-less sandbox browser. Paste assets/a11y-probe.js into the viewer’s preview
console instead, and run scripts/colorblind-sim.py on a check_gpu_render screenshot.
python3 scripts/colorblind-sim.py shot.png --sheet # shot-protanopia.png, -deuteranopia, -tritanopia, -gray, -sheet
Look at the gray version: anything shown by color alone (red vs green team, a “danger” tile) disappears there.
2. Color tools (assets/contrast.js)
import { contrast, passes, fixContrast, distinguishable, paletteReport, applyColorFilter } from "./contrast.js";
contrast("#fff", "#3fa7ff") // 2.6: needs 4.5 for normal text, 3 for large text (24 px+) and UI shapes
fixContrast("#3fa7ff", "#fff", 4.5) // a darker blue with the same hue that passes
paletteReport(["#ff5a5f", "#4fd67a", "#3fa7ff"]) // pairs too close under each kind of color blindness
applyColorFilter(canvas, settings.get("colorblind")) // in-game filter setting
Safe pairs: blue and orange, blue and yellow, dark and light. Always add a second cue: shape, icon, pattern or label.
3. Manual checklist
Controls
- Playable with keyboard only, with touch only, and with a gamepad (if supported)
- Every control can be remapped (game-control-customization); no required simultaneous presses or rapid mashing (or an option)
- Hold actions can be toggles; no precise timing required without an assist option
- Touch targets at least 44 px; buttons don’t sit under the notch or home bar
Seeing
- Text at least 16 px on a phone, with a text size option; high contrast backing behind text over the game
- Nothing important shown by color only; color filter option if colors carry meaning
- Important sounds have a visual cue (subtitles, direction indicator)
Hearing
- Subtitles for speech, with speaker names; separate volume sliders; the game is playable muted
Motion and flashing
- Screen shake amount setting, reduce motion setting (respects the system setting), no flashes over 3 per second, flashes can be turned off
Difficulty and thinking
- Pause anywhere (including cutscenes); game speed or difficulty options; checkpoints
- Clear goal on screen; tutorial can be replayed; no timed text that vanishes before it can be read
Web page
langattribute, a title, the canvas hasrole="img"and anaria-label, HTML menus reachable with Tab and visible focus
Score each section pass / partly / fail in the report and fix the fails first: they usually take minutes (a setting, a label, a bigger font).
Tested
a11y-audit.py was run on a page with planted problems (it found all of them: no language, no title, zoom blocked, a tiny unnamed
button, low contrast, tiny text, an image without alt, an unlabeled canvas, no reduced-motion support) and on a clean page (0
fails, 0 warnings). Color tools: contrast values, contrast fixes on light and dark backgrounds, red/green flagged for
deuteranopia, blue/orange passing, gray staying gray.
Pitfalls
Treating the automatic report as the whole audit, testing only with a mouse, checking contrast on the menu but not on the HUD over the game, and adding settings that don’t change anything.