

Boxel Rebound
Jump and dodge through 50+ levels in Boxel Rebound, then build your own stages with its level editor and chase the fastest times.
Boxel Rebound is a one button platformer with a built in level editor, and the build ships its source files, so the tuning is readable: gravity set to 15 with a 500 pull, a high jump of 27.5 with a 750 duration, and a tile list where three types are deliberately not solid.
The page loads twenty six separate scripts rather than one bundle: a Game object, a Player, a Tile set, two editors, a storage manager and a CreateJS stack. That is why the physics values below can be quoted exactly: they are declared in the player file, not compiled away.
The engine is CreateJS, with EaselJS for display, SoundJS for audio, PreloadJS for loading and TweenJS for movement. A game built on that stack is a canvas app with a scene object per screen, which is why the build has a view index for the intro, the home screen and the play field.
| File | Role |
|---|---|
| Game.js | Stage, input, view state and the main tick |
| Player.js | Movement, jump, gravity and death |
| Tiles.js | Tile drawing plus the solid test |
| LevelMap.js | The tile grid and its history |
| LevelEditor.js | Paint, save and export |
| StorageManager.js | Saved levels and their format |
The player has a gravity object set to 15 and 500, which is the pull and the terminal speed in the same call. A normal jump uses the same amplitude system as a high jump, and the high jump is explicitly 27.5 with a duration of 750, triggered by a bounce flag rather than by a second input.
The player also carries a rotation speed of 0.75, which is what makes the square tumble as it jumps. A tumbling sprite with a fixed jump arc is the whole game: the challenge is timing one button so the square lands on a face rather than an edge, and the rotation value is what sets the rhythm.
A gap hook flag lets the player fall or jump between tiles instead of sticking to a wall, which is the difference between a clean corner and a frustrating one in a one button platformer.
Every tile is solid by default and the code lists exceptions rather than inclusions. Type 3 is a respawn box, type 8 is an expand box and type 9 is a shrink box, and all three are passable. That inversion is why a level can place a trigger anywhere without a separate object layer.
| Tile type | Behaviour |
|---|---|
| 3 | Respawn box, not solid |
| 8 | Expand box, not solid |
| 9 | Shrink box, not solid |
| 4 | Hazard that kills when you are falling |
| 6 | Hazard that kills when you are rising |
| 7 | Hazard that kills from the side |
The hazard numbers matter because they are directional. A spike floor kills a falling player, a spike ceiling kills a rising one, and a side spike kills on contact. A room built from those three types reads as a shaft, a ceiling and a wall without needing three different spike sprites.
A level is stored as a map string with two characters per tile, wrapped in a map tag, plus a tip tag for the hint text. The storage manager trims the two apart, so a saved level is a grid and a sentence rather than a binary blob. That is why a level can be copied out of local storage and read by eye.
Saved levels use the prefix br_ and are numbered from one upward, so a new save finds the next free index. An exported level is the same string written to a file, which is how the community shares maps: the file is the level.
The level map keeps a history array and a history index, so undo and redo are array copies rather than a command log. The editor can set tiles, lock columns or rows to stop the map growing, and resize the grid in both directions. That is a full tile painter rather than a stamp tool.
Because the grid can grow, a level can be built outward from the spawn without deciding its size first. The spawn and finish tiles are ordinary tile types, which is why a level has no separate spawn object: the grid carries everything.
There is no readable campaign. Levels are user made and stored locally, so the build has no numbered list of built-in stages to quote. The initial level, if any, comes from a preloaded asset key rather than a readable set, which places this game in the same family as the editor platformers rather than the campaign ones.
Sound names and asset keys are also binary-loaded, so the audio set cannot be listed. What is fully readable is the tuning and the tile vocabulary, which is more than most builds in this collection give away.
The home screen is part of that readable layer. It reads the saved level count before drawing the list, which is why the menu can show a custom level tab and an empty tab at the same time. A player who has saved nothing still sees a playable game because the preloaded level is loaded by key rather than from the list.
The player gravity is set to 15 with a 500 pull, declared in the player source file.
27.5 amplitude with a 750 duration, triggered by a bounce flag rather than a second button.
Three: the respawn box, the expand box and the shrink box. Every other tile is solid by default.
One hazard type kills a falling player, one kills a rising player and one kills on side contact, so the same spike art covers floors, ceilings and walls.
As a map string with two characters per tile plus a tip tag, stored under the br_ prefix with sequential numbering.
Yes. An exported level is the same text written to a file, so the file is the level.
Yes. The level map keeps a history array and an index, so undo and redo are array copies.











