Bash.tv → GitHub → itch.io

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 GitHub

Game 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

Seeing

Hearing

Motion and flashing

Difficulty and thinking

Web page

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.