Play it now · Quick Start · Features · Controls · Burdens · Structure · Docs
The rift swallowed the keep of Vashtamor, a dead king who refused to stay buried. His crown shattered into three Ashen Shards, and each shard found a bearer somewhere below. While the shards are held, the King's echo re-crowns itself a little more each night. You are a Riftblade - bound to the rift, sworn to carry the shards out before the coronation completes.
Every run is a freshly generated descent through three strata of the sunken keep: barrow mounds, a drowned cloister and an obsidian crown spire. Rooms, corridors, shard-bearing champions, shrines, the Tollman who keeps his promises, and at the bottom, Vashtamor himself. Die and the keep rearranges itself for the next Riftblade. Earn soul shards either way.
Floor 1 - The Embergrave Barrows. Grid-based collision, y-sorted sprites, procedural layout.
Combat. 3-hit melee combo, crits, dodge rolls with i-frames, status effects, knockback.
Champion encounters. Named minibosses guard the deeper floors with their own AI patterns.
| System | What you get |
|---|---|
| Procedural dungeon | Seeded room-and-corridor generation, three authored strata (Embergrave Barrows, Drowned Cloister, Crownspire Sanctum), deterministic reruns of any seed |
| Combat | 3-hit melee combo with arc hitboxes, crits, hit-stop, knockback, dodge rolls with invulnerability frames |
| Riftblades | Three heroes - Serra the Ashen Warden, Kael the Nightblade, Brann the Gravebreaker - each with its own reach, tempo and crit profile |
| Spellbook | Fireball, Frost Nova, Arcane Bolt (multi-bolt upgrades), Whirlwind - each with mana cost and cooldown |
| Boons | Patron offerings from The Ashen Chorus, The Still Water and The Hungering Dark in three rarities, offered at boon shrines |
| Relics & loot | 15+ relics, gold, souls, potions, chests, and weighted drop tables |
| Progression | Level-ups with upgrade drafting, persistent meta shard rewards |
| Burdens of the Crown | Six stackable difficulty burdens that raise the danger and the shard harvest |
| Enemies | A ten-kind roster across six readable behaviors - rushers, lungers, ranged skirmishers, heavies, shielded guard counters and interruptible summoners |
| Bosses | Three shard-bearer champions and Vashtamor, the Crownless King - a three-phase final fight with a dedicated fury phase |
| HUD & minimap | Live minimap with room discovery, hold-to-enlarge, boss bars, cooldown wheels |
| Persistence | Runs save to localStorage; continue where you fell (v1/v2 save compatibility preserved) |
| Audio | Fully synthesized Web Audio soundtrack and SFX - zero audio assets, zero loading |
| Accessibility | Reduced-FX mode, adjustable mix, keyboard remap-ready controls, ARIA-labelled UI |
| QA | 33 deterministic gameplay/combat tests, CI on every push, F3 combat-timing debug overlay |
# install dependencies
bun install
# run the dev server on http://localhost:3000
bun run devThe game lives at / - the only route. It needs a modern browser with WebGL.
# production build (standalone server bundle)
bun run build
bun run start
# static export for GitHub Pages (also what CI builds)
bun run build:pages # emits ./out with the /Riftbound base path
# lint / typecheck / deterministic tests
bun run lint
bun x tsc --noEmit
bun testEvery push to main runs CI (lint, typecheck, tests, Pages build) and deploys
the static export to GitHub Pages.
To serve a Pages build locally exactly as deployed:
bun run build:pages
bun scripts/serve-pages.ts 4173 # http://localhost:4173/Riftbound/| Input | Action |
|---|---|
| W A S D | Move |
| Mouse | Aim |
| Left click | Melee attack (3-hit combo) |
| Right click | Fireball |
| Space | Dodge roll (i-frames) |
| 1 | Frost Nova |
| 2 | Arcane Bolt |
| 3 | Whirlwind |
| Q / F | Health / mana potion |
| E | Interact - chests, shrines, portals, merchant |
| Tab (hold) | Enlarge the minimap |
| I | Inventory |
| Esc | Pause |
Sworn before each run, stackable for a richer soul-shard harvest:
| Burden | Shard bonus | Effect |
|---|---|---|
| Debt of Iron | +15% | Enemies endure +35% more punishment |
| Tithe of Blood | +15% | Enemies strike 25% harder |
| Hunger's Pace | +10% | Enemies move 15% faster |
| Gaunt Vow | +20% | You begin with 25% less health |
| Bleak Ledger | +20% | Gold and healing are halved |
| The Third Coronation | +25% | Vashtamor crowns himself in rift-fire: a terrifying third phase |
src/game/ Phaser core - scenes, entities, dungeon, combat, audio
combat.ts Pure, deterministic combat core (shared with the tests)
scenes/ BootScene (asset pipeline) + GameScene (the run)
entities/ Player, enemies, champions, boss, pickups, props
dungeon/ Seeded generator + tile renderer
src/components/game/ React UI overlays - menu, HUD, modals, end screens
src/lib/gameStore.ts Zustand store bridging the game event bus to React
src/lib/assetPath.ts Deployment base-path mapping for public assets
public/assets/ Processed sprites + machine-readable manifests
scripts/ Tests, asset pipeline, Pages build helpers
.github/workflows/ CI + GitHub Pages deploy
docs/ Design docs, QA reports, performance notes
The game renders on a Phaser 3 WebGL canvas while every menu and HUD element is a React overlay - the two sides never touch. A typed event bus carries game state into a Zustand store, and commands flow back the same way:
Phaser scene --(bus.emit)--> Zustand mirror --(selectors)--> React overlays
React UI --(bus.cmd)----> GameScene command handler
The game layer boots behind a timeout watchdog and a boot-error surface, so an engine failure degrades to a retry screen instead of an infinite loader.
The same build ships as a standalone server bundle or a fully static export:
public asset URLs resolve through a deployment base path
(src/lib/assetPath.ts for the React overlays, the Phaser loader baseURL for
textures and manifests), so the static export works under GitHub Pages'
/Riftbound sub-path without a special asset fork.
python3 scripts/asset-tools/build_assets.py inspects the source sprite packs,
normalizes them into public/assets/, and emits manifests
(effects.json, characters.json, icons.json, asset-manifest.json) that
drive loading and per-frame animation durations at runtime. Re-run it after
changing the source packs. See docs/ASSET_LICENSES.md
for attribution.
| Doc | Contents |
|---|---|
| Redesign record | The v2.0.0 Crownfall redesign: premise, heroes, roster, bosses, strata |
| Next phases | The phased roadmap and acceptance checks |
| Development state | Checkpoints: what shipped, how it was verified, what is open |
| Art direction | Palette, typography, UI language |
| Asset licenses | Attribution for every shipped sprite pack |
| Asset manifest | How the pipeline output maps into the game |
| Performance | Optimization passes, budgets and profiling notes |
| Quality report | QA matrix and known-good scenarios |
| Implementation status | Feature checklist |
| Contributing | Workflow, conventions, PR checklist |
| Changelog | Release history |
Code is released under the MIT License. Sprite assets are covered by their own licenses - see docs/ASSET_LICENSES.md before redistributing them.
The dead do not rest here. Neither should you.


