PUBLIC REPOSITORY
By Batty 251 (@batty-251) · Licence: MIT · 2 published versions · 41 files · 3.5 MB of source · Last published 2026-11-08
A public project on CodeRook. Browse it at https://coderook.com/batty-251/hearthhold.
Keep the fire burning through the longest night.
The snow came early and the wraiths came with it. Gather firewood out in the dark, carry it home to feed the hearth, throw embers at the wraiths, and plant lanterns to push the dark back. Survive from 22:00 until dawn.
Made for CodeRook: it runs in the browser with nothing to install. Open index.html through any web server, or play it on its CodeRook page.
| Input | Action |
|---|---|
| WASD / arrows, or drag the stick on a phone | Move |
| Click / tap (hold to keep throwing) | Throw an ember (costs a little fuel) |
| E / Space, or the Lantern button | Plant a lantern (2 wood) |
| P / Esc | Pause |
| M | Sound on or off |
| Enter | Start the night |
Music, sound and reduced motion can be set on the title and pause screens; the choices are remembered.
index.html page, HUD, settings and screens
css/style.css look of the HUD and screens
js/audio.js loads and mixes the music, ambience and effects with Web Audio
js/game.js the game: world, lighting, wraiths, input and the night clock
audio/ music, ambience and effects (OGG with MP3 fallback)Made with CodeRook. © ACCA Gaming Productions. Music and sound effects generated with ElevenLabs.
PUBLIC REPOSITORY