Trap Step Classic - HTML5 Troll Platformer Source Code
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),sawanddoor(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 ESCAPEDandCONTROLS REVERSED. - Colors: the
COLobject near the top (bg,solid,spike,door,player). - Levels: each entry in
LEVELSis{name, start, door, solid, spk, traps}. Cells are[x, y], rectangles are[x1, y1, x2, y2], and each trap has a typetand a trigger rectangler. Copy a level and move things around. - Feel: jump strength is
P.vy=-15, and the jump buffer isjumpBuf=.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.
| Published | 17 days ago |
| Status | Released |
| Category | Assets |
| Author | Chiarly6 |
| Genre | Platformer |
| Tags | Asset Pack, html5, javascript, sourcecode, Project template |
| AI Disclosure | AI Assisted, Code, Text |
Download
This asset pack is currently unavailable

Leave a comment
Log in with itch.io to leave a comment.