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

  1. 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.
  2. Level 2: Peek-a-boo spikes that only pop up once you commit to the jump.
  3. Level 3: Halfway across the bridge, Left & Right controls secretly invert while the narrator mocks you.
  4. 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.
  5. 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:

How many deaths did it take you to beat all 5 levels?