- TypeScript 80.7%
- Python 17%
- CSS 1.1%
- JavaScript 1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
Publish container image / publish (push) Successful in 37s
nginx 1.31.9 fixes the NGINX2Root CVEs (CVE-2026-123007, -123634, -123633, -121810, -113425). Our config uses none of the affected paths (plain HTTP/1.1 on port 80 behind Traefik; no resolver, HTTP/2/3 or mail proxy), but the base image is pinned to the fixed release anyway. |
||
| .forgejo/workflows | ||
| assets-src | ||
| deploy | ||
| docker | ||
| public | ||
| scripts | ||
| server | ||
| src | ||
| .dockerignore | ||
| .gitignore | ||
| AGENTS.md | ||
| docker-compose.dev.yml | ||
| Dockerfile | ||
| index.html | ||
| LICENSE | ||
| LORE.md | ||
| package-lock.json | ||
| package.json | ||
| perf-baseline.json | ||
| README.md | ||
| render-dev.html | ||
| SPEC.md | ||
| tsconfig.json | ||
| tsconfig.sim.json | ||
| vite.config.ts | ||
Gloomrooms
Turn-based roguelike with auto-attacks: you only move, every weapon fires on its own. Design: SPEC.md. Style, conventions, checks and deployment: AGENTS.md. Repository: https://lorebase.eu/sven/gloomrooms.
Run
npm install
npm run dev # Vite dev server
npm run build # tsc --noEmit && vite build → dist/
npm run typecheck
npm test # vitest run
Structure
src/sim/— pure TypeScript game simulation (no three.js, no DOM).step(state, action, rng) → { state, events }, seeded RNG (rng.ts), so seed + actions reproduce a run.types.tsis the shared contract;arena.ts/vec.tsgrid + LOS,combat.tsdamage helpers,weapons.ts,enemies.ts,spawn.ts,init.ts(config, presets,createGame).src/render/— three.js renderer behind theRendererinterface (types.ts); only reads state/events.src/input/— keys → actions (hjkl/yubn, numpad, arrows,.= wait) with hold-to-repeat.src/game/— controller (fastForward → step → apply, restart) and persisted debug settings.src/ui/— HUD, death overlay, debug panel (toggle with`or F1).src/main.ts— wires renderer, controller, input and UI.public/assets/— CC0 models (seepublic/assets/ASSETS.md).
Tests live next to the code as *.test.ts.
Container image
Dockerfile builds the static site (typecheck, tests, vite build) and serves dist/ with nginx on
port 80:
docker build --build-arg GIT_COMMIT_HASH=$(git rev-parse HEAD) -t gloomrooms .
docker run --rm -p 8080:80 gloomrooms # http://localhost:8080
The Forgejo workflow .forgejo/workflows/publish-image.yml builds and pushes
lorebase.eu/sven/gloomrooms:{<version>,latest} when a version tag v<version> is pushed. The tag
must match version in package.json. It needs a repository secret REGISTRY_TOKEN (a Forgejo
access token with package write access).
Release: bump version in package.json (and npm install to sync the lockfile), commit, then
git tag v<version> && git push origin main v<version>.
Licence
The game's code and text are © Sven Bröckling and free software under the GNU General Public
License, version 3 or (at your option) any later version (GPL-3.0-or-later, see LICENSE).
The bundled assets keep their own licences: the KayKit models are CC0 (public/assets/ASSETS.md),
the IM FELL English SC font is under the SIL Open Font License (public/fonts/FONTS.md), and
three.js is MIT. The in-game credits list them all.