batty-251/hearthhold

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.

Versions

Files in the latest version

README

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.

Controls

InputAction
WASD / arrows, or drag the stick on a phoneMove
Click / tap (hold to keep throwing)Throw an ember (costs a little fuel)
E / Space, or the Lantern buttonPlant a lantern (2 wood)
P / EscPause
MSound on or off
EnterStart the night

Music, sound and reduced motion can be set on the title and pause screens; the choices are remembered.

How the night works

Files

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

Opening batty-251/hearthhold…

Loading the public version history and verified file tree.