After seeing how much fun players have with Level-Devil-style troll platformers, I challenged myself to build a tiny, zero-dependency HTML5 Canvas + Web Audio API troll game that runs at 60fps on both desktop and mobile browsers in a single HTML file:
👉 Play Now (Desktop & Mobile): Don't Trust The Floor
👉 GitHub Pages Mirror & Source: github.com/chmy1985012/dont-trust-the-floor
What Makes It Cheeky
- Level 1: Looks like an easy walk—until the floor drops out 1 step before the flag AND the goal flag grows legs and runs away.
- Level 2: Peek-a-boo spikes that only pop up once you commit to the jump.
- Level 3: Halfway across the bridge, Left & Right controls secretly invert while the narrator mocks you.
- Level 4: A falling ceiling + a solid wall blocking the door—forcing you to walk backwards off the left edge of the screen to wrap around.
- Level 5: Even the green "YOU WIN!" button dodges your cursor 3 times.
Technical Highlights (Zero Libraries)
- Pure Canvas 2D physics loop with 6-frame coyote time, screen shake, and particle bursts
- Retro jump/splat/troll sound effects synthesized on the fly with Web Audio API (0 audio files)
- Works offline as an installable PWA
I also built two more zero-dependency Canvas experiments in the same suite:
- Echo Loop (co-op puzzle with your own 8-second recorded Time Echoes): apps.takefox.com/echoloop
- Orbit Sling (one-button gravity slingshot with Near-Miss ×2/×4/×8 combos): apps.takefox.com/orbitsling
How many deaths did it take you to beat all 5 levels?