Bash.tv → GitHub → itch.io

Review a browser game's code for bugs, frame-rate and timing problems, input and state bugs, memory leaks, performance, security in multiplayer, architecture and maintainability, and report findings by severity with file and line, why it matters for the player, and a concrete fix. Includes a quick static scanner for common game bugs. Use for "review my game code", "find bugs", "why does it lag ...

Download skill (.zip) Files on GitHub

Game code review

1. Understand first (5 minutes)

2. Scan

python3 <skill>/scripts/review-scan.py <game-folder>            # grouped by severity, file:line
python3 <skill>/scripts/review-scan.py <game-folder> --min medium

It finds candidates: setInterval loops, no dt, splicing in forward loops, listener leaks, setTimeout gameplay, state changed in draw, unsafe storage, native dialogs, innerHTML from variables, leftovers (debugger, console.log), long files and functions, and magic numbers. Read each hit in context before reporting it. Drop false alarms. If the bash-web-game-checkup skill is installed, run it too for build and deploy problems.

3. Read by area (what the scanner can’t see)

Area Look for
Timing Speeds per frame not per second, timers counting frames, dt spikes after tab switch, physics with variable dt that explodes at low FPS
Input Keys stuck after blur, one tap acting in two states, no touch path, tiny touch targets, page scroll on arrows/space, e.key vs e.code
State Restart not resetting everything, flags instead of one state (isPaused && !isOver), pause not freezing timers, audio, particles
Collisions Tunneling at high speed (no sweep/substep), hitbox ≠ art, order-dependent results, removing during iteration
Memory Arrays that only grow (particles, bullets), listeners or intervals per restart, three.js objects never dispose()d, closures per frame
Performance Allocation in update/draw, shadowBlur/filters per frame, unbatched draws, getImageData per frame, DOM reads in the loop, uncapped devicePixelRatio
Saves No version, no try/catch, trusting the shape of loaded data, saving every frame
Audio No unlock on first gesture, sounds created per play without limits, no mute
Multiplayer / Bash Trusting client-sent scores or names, secrets or answers sent to every client, innerHTML with player names, keys in frontend code
Maintainability God files, game rules inside render, magic numbers, copy-pasted entity code, unclear names, dead code

4. Report

Lead with a one-line verdict, then findings sorted by severity. Each one gets:

[HIGH] Bullets skip collisions after one is removed. src/scenes/play.js:88
Why: splicing while looping forward skips the next bullet, so some hits never register.
Fix: loop from the end (for (let i = arr.length - 1; i >= 0; i--)) or use the pool's swap-remove.
Severity Meaning
High A player will hit it: crash, softlock, wrong result, broken on phones or itch.io, security hole
Medium Noticeable sometimes: stutter, leak over a long session, input glitch, state bug after restart
Low Maintainability and cleanliness: makes future changes risky or slow
Info Suggestions and nice-to-haves

Rules: cite the file and line, say the player-facing effect, give a fix that fits the existing code style, and limit it to the top ~10 unless asked for everything. Say what’s good too (one or two lines), and what you didn’t check.

5. Fixing (if asked)

Fix the high items first, one at a time, re-testing the affected state after each. Use game-refactoring for structural changes so behavior stays identical. Don’t mix “fix bugs” and “restructure” in one step.