A 10-level troll platformer in ONE file (index.html): plain JavaScript + Canvas 2D, no engine, no build step, no external files. About 16 KB.

Play the free demo right on this page.

What's inside

  • 10 hand-made troll levels on a 24 × 14 tile grid
  • 6 trap types driven by trigger zones: drop (floor falls away), spikes (spikes pop up), crush (ceiling block slams down), flip (controls reverse), saw and door (the exit runs away)
  • Coyote time and jump buffering, so the controls feel fair
  • Death counter per run and in total; progress and mute setting saved in localStorage
  • Synth sound effects with WebAudio (no audio files)

Reskin in 10 minutes

  • Title / text: search TRAP STEP, YOU ESCAPED and CONTROLS REVERSED.
  • Colors: the COL object near the top (bg, solid, spike, door, player).
  • Levels: each entry in LEVELS is {name, start, door, solid, spk, traps}. Cells are [x, y], rectangles are [x1, y1, x2, y2], and each trap has a type t and a trigger rectangle r. Copy a level and move things around.
  • Feel: jump strength is P.vy=-15, and the jump buffer is jumpBuf=.12.

Ready for game portals

All ad calls go through one small Portal object. The pack also has ready-made builds wired to the CrazyGames, GameDistribution and GameMonetize SDKs (pause and mute during ads). Add your own game ID, zip and upload.

License

Use it for one game of your own, free or commercial. Do not resell or share the source. See LICENSE.txt.

Made with AI-assisted code by Chiarly.

Download

This asset pack is currently unavailable

Leave a comment

Log in with itch.io to leave a comment.