Skip to content

Lanternfall: a Browser JRPG Drawn in Code

Lanternfall title art: five heroes beside a glowing lantern under a starry sky

Free Classic JRPG in the Browser


Lanternfall is a classic 16-bit-style JRPG that runs in the browser, where every pixel and every note is generated in code. Characters, monsters, towns, dungeons, spell effects and the chiptune soundtrack are all drawn with Canvas 2D and played with the Web Audio API, so there are no image or audio files at all. It is built with AI-assisted development using Claude, and every update is play-tested in a headless browser before it ships.

Play it free in your browser on itch.io: no download and no account. It plays with a keyboard, or with on-screen touch controls on a phone or tablet.

What it does

  • A real story, and more after the credits. Relight the four Lanterns that hold back the Hollow Night, then sail to an island that rises from the sea for Chapter VI, and dive to a sunken kingdom on the sea floor.
  • Five heroes with their own stories. A lamplighter, a flamecaller, a tide priest, a rogue and a duskmage, each with a personal quest, an ultimate weapon and a Limit attack, plus 12 two- and three-hero combo techs.
  • Battles with depth. Elemental weaknesses and absorbs, statuses from Blind to Berserk and Stop, weather that changes fights, enemies that hunt the wounded, and 17 bosses that change tactics when hurt.
  • A world that lives. Nine towns, twelve dungeons across 32 floors, a ship, an airship, a diving bell and giant moths to ride, with day and night and regional weather.
  • Things to come back to. The Endless Lantern, a dungeon with no bottom; Hollow mode for a hard run; a card game, a heist, a home to upgrade with a music box and a cat who follows you.
  • 94 monsters, 23 side quests, 37 trophies and a 6-cup arena, plus fishing, forging, cooking, treasure maps, the Lantern Board, a bestiary, a world map and New Game+.
  • Play anywhere. In the browser, installed as an offline app, or as a Windows, macOS or Linux download, with save transfer between them, gamepad support, rebindable keys and a speedrun timer.
  • Made to be modded. Game content lives in checked JSON files, with a mod system, an in-browser town editor and support for translations.

How it’s built

The game is about 10,000 lines of plain JavaScript split into modules, with the game content in JSON files,, which a small Python build script inlines into a single HTML file. Everything on screen is drawn with Canvas 2D vector paths, so it stays sharp at any screen size, and the music comes from a small chiptune sequencer written on the Web Audio API. The overworld is generated from a fixed seed with noise-shaped continents, and every dungeon floor is generated procedurally and checked so that each room, chest and staircase can be reached.

Every change is play-tested automatically in headless Chrome on GitHub before it is merged: scripts check that each region opens only when the story says it should, play the main story through to the ending, walk every side quest, and simulate hundreds of battles to tune each boss.

Run it

Open index.html in any modern browser; there is nothing to install. To change the game, edit the files in src and run python3 build.py to rebuild it. Move with the arrow keys or WASD, confirm with Enter, and open the menu with Esc. Saves stay in the browser. The code is open source under the MIT license.

Support Lanternfall

Lanternfall is free, with no ads and no purchases, and it will stay that way. If you enjoy it, a donation through itch.io helps more games get made.

Get help

Stuck, found a bug, or the game will not load? Email info@jeremyanderson.tech or open an issue on GitHub. Say which browser and device you are on and what you were doing when it went wrong.


Like browser games? Chess RPG Tactics is a tactics RPG I built with three.js, Hearthdeep is a 3D action RPG, and The Wilds is a 3D survival game built with Babylon.js.

Want something like this for your business? See full-stack and custom development, or book a call.

Interested in this project? Get in touch.