Paper Kai: HTML5 Paper Craft Platformer Game with Source Code
Kai, a chibi paper ninja, runs, jumps, wall-jumps, dashes and stomps through three worlds of hand-crafted paper scenery, with his origami crane Fumi flying behind him. 24 levels, 3 bosses, 3 powers, scrolls and secrets to find, 14 languages, and a complete template that is plain HTML, CSS and JavaScript with no build step.

A story told in paper
In the Bamboo Vale, Kai was folding his thousandth paper crane when King Scissors snipped away all the colours of the world. The last crane came to life, and the chase begins: a 3-picture story opens the game, and each world clear moves it on.

Tight platforming that feels good
Variable jump height, coyote time and jump buffer, corner correction, wall slide and wall jump, a dash that breaks cracked blocks, stomp combos, springs and kites to hang from. Hitstop, screen shake, paper confetti, squash and stretch and a torn-paper screen transition give every action weight. 3 hearts, checkpoints (pinwheels), 100 coins for an extra heart.

3 powers
Paper envelopes hide the powers: the shuriken hits enemies from afar, the kite cape lets Kai glide over long gaps, and the ink cloud turns him into ink for a moment so he passes through enemies that cannot be stomped, like the spiky sea urchin.

3 worlds, each with its own tricks
Each world has 6 levels, a bonus level opened by a secret exit and a boss. Bamboo Vale: springs, moving platforms, spikes, fake walls that hide secrets (Fumi glows near them), frogs, acorns, bees and crabs.

Kite Festival: wind gusts, kites to ride along their lines, folding fans, fireworks tubes, fan soldiers, diving cranes and spinning tops, and a rooftop race over the festival town while loose roof tiles fall.

Ink Falls: shallow water that pushes, floating logs, bubbles that lift, sinking rafts, carps that leap in a row like springboards, waterfalls that hide passages, ink octopuses and sea urchins, and a vertical climb against rising ink.

3 bosses
The Paper Rhino charges across the arena, the Kite Dragon flies on 3 lines that Kai cuts with a dash or a shuriken, and the Ink Carp Queen hides under the water and leaps out in series of 1, 2 and 3 jumps, spitting bubbles.

Scrolls, secrets and a map per world
Every level has 3 scrolls to collect, coins and big coins, hearts and power envelopes. A paper map for each world shows the levels done, the scrolls found and the coin total; a secret exit opens the bonus level. Clearing a level stamps it with the scrolls, coins and time.

Levels you edit as text, proven by a robot
Every level is a row of level pieces written with one character per block in src/levels.js (a legend explains each character). Change a piece, reorder the pieces or draw new ones in any text editor. npm test runs a route robot with the real game rules on every level piece and proves that the end, the 3 scrolls and the secret exit can still be reached, so a gap that became too wide is caught before your players find it.
Touch, keyboard and gamepad, portrait and landscape
The whole game can be played with touch buttons, keyboard or gamepad, and every menu can be navigated with the gamepad. Keys and gamepad buttons can be remapped in the settings. On a phone held upright the game becomes a handheld console with the level on top and the buttons below; held sideways it fills the screen. Very wide screens are supported too.

Accessibility and 14 languages
Colour-blind mode (strong outlines on what hurts and on what you collect), high contrast, reduced motion and a screen-shake switch. The interface is translated into 14 languages (English, Portuguese, Spanish, French, German, Italian, Dutch, Polish, Turkish, Russian, Indonesian, Japanese, Korean and Chinese), one file per language, and follows the device language. Progress and settings are saved in the browser.
Easy to reskin, no build step
All art is WebP images listed with their sizes, sounds and music are MP3 files: replace a file with another of the same name and size. Rule numbers (speed, jump, enemies, bosses) and feel numbers (hitstop, shake, particles) live in one commented file. The code is readable JavaScript modules with comments, a canvas renderer and pure, testable game rules. There is nothing to compile and no dependencies: upload the game folder to any static host. Node.js 26 LTS is only needed for the tests, the local server and the copy to dist/.
What you get
- game/: the ready-to-host game (HTML, CSS, JavaScript modules, WebP art, MP3 music and sound effects, fonts).
- source/: the complete editable project with 170 tests, the route robot, a local server and a copy-to-dist build.
- Illustrated offline buyer guide in 14 languages, and a step-by-step customization guide for non-programmers (English, Portuguese and Spanish).
- Font licences (SIL Open Font License 1.1). No third-party code libraries, no external requests.
Live demo and support
The live demo is the buyer build with its code protected against copying; the download is fully readable. Questions, installation help or custom work: willian@polargames.com.br.

























