A roguelike survivors game
  • TypeScript 80.7%
  • Python 17%
  • CSS 1.1%
  • JavaScript 1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Sven Bröckling efcb87e358
All checks were successful
Publish container image / publish (push) Successful in 37s
Release 0.2.3: serve with nginx 1.31.9
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.
2026-11-18 21:20:17 +01:00
.forgejo/workflows S1: server sync (API, Postgres, the taper, Profile page) 2026-11-03 22:24:37 +01:00
assets-src SFX-2: sound effects: forty CC0 sounds, hollow and subtle under the music, played from the step's events 2026-11-13 22:26:46 +01:00
deploy PUB-1: the server's address and access leave the repository: AGENTS.md and deploy/ say "the server" and point to deploy/SERVER.local.md (gitignored, *.local.md); deploy.sh runs from its own directory and exports GLOOMROOMS_DATA_DIR for the db's bind mount 2026-11-13 23:57:35 +01:00
docker nginx: also listen on IPv6 so localhost health checks work 2026-11-03 10:05:57 +01:00
public SFX-3: a stolen voice fades out over 10 ms instead of a click; a file that failed to load is asked for once more by a cue 10 s later; the sfx folder credited as made here (Sven Bröckling, CC0) and each file to its own source's author, tested against LICENSE.txt and ASSETS.md 2026-11-13 22:59:34 +01:00
scripts B22-5: the way out: every guardian, every wrath level, leaves the bearer a step no mark covers (a check, with today's list) 2026-11-13 23:56:50 +01:00
server HB-3: sim perf (movement without allocation, one-pass targeting, an array-free clearLine, a faster clone), the pool's errors logged instead of crashing, perf-lock nested runs 2026-11-13 07:28:04 +01:00
src Release 0.2.3: serve with nginx 1.31.9 2026-11-18 21:20:17 +01:00
.dockerignore S1 rework: routing, secrets, quiet failures, limits that fit the server 2026-11-03 22:34:59 +01:00
.gitignore PUB-1: the server's address and access leave the repository: AGENTS.md and deploy/ say "the server" and point to deploy/SERVER.local.md (gitignored, *.local.md); deploy.sh runs from its own directory and exports GLOOMROOMS_DATA_DIR for the db's bind mount 2026-11-13 23:57:35 +01:00
AGENTS.md PUB-1: the server's address and access leave the repository: AGENTS.md and deploy/ say "the server" and point to deploy/SERVER.local.md (gitignored, *.local.md); deploy.sh runs from its own directory and exports GLOOMROOMS_DATA_DIR for the db's bind mount 2026-11-13 23:57:35 +01:00
docker-compose.dev.yml S1: server sync (API, Postgres, the taper, Profile page) 2026-11-03 22:24:37 +01:00
Dockerfile Release 0.2.3: serve with nginx 1.31.9 2026-11-18 21:20:17 +01:00
index.html V3-7: mobile shell: home-screen install, fill the screen, wake lock 2026-11-03 16:17:05 +01:00
LICENSE S1: GPL-3.0-or-later licence, floor title fades in after the menu, in-game changelog 2026-11-03 15:08:12 +01:00
LORE.md B22-4 rework: LORE's shuigui keeps its bank clear with a wall at the bearer's back; the mušḫuššu's KEPT entry names its cause (B22-5b's ash leaves a way out); the pace floor 28 (SPEC D22); the long edge's deaths sword + 5 (a guard: 7 against 3 sat on + 4) 2026-11-14 01:14:04 +01:00
package-lock.json Release 0.2.3: serve with nginx 1.31.9 2026-11-18 21:20:17 +01:00
package.json Release 0.2.3: serve with nginx 1.31.9 2026-11-18 21:20:17 +01:00
perf-baseline.json PF-H: the skinned KayKit hordes under the frame budget 2026-11-08 19:27:18 +01:00
README.md S1: GPL-3.0-or-later licence, floor title fades in after the menu, in-game changelog 2026-11-03 15:08:12 +01:00
render-dev.html V4-1: items read by light, names on approach 2026-11-03 20:22:26 +01:00
SPEC.md B22-4 rework: LORE's shuigui keeps its bank clear with a wall at the bearer's back; the mušḫuššu's KEPT entry names its cause (B22-5b's ash leaves a way out); the pace floor 28 (SPEC D22); the long edge's deaths sword + 5 (a guard: 7 against 3 sat on + 4) 2026-11-14 01:14:04 +01:00
tsconfig.json P-M1: main menu shell, menu settings, Esc routing 2026-11-03 11:57:45 +01:00
tsconfig.sim.json M1: local profile, unlock engine and the "remembered" banner 2026-11-03 21:55:19 +01:00
vite.config.ts V11-9: the character panel, the lantern (variant C, condensed; at the bottom on phones) 2026-11-08 22:49:27 +01:00

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.ts is the shared contract; arena.ts/vec.ts grid + LOS, combat.ts damage helpers, weapons.ts, enemies.ts, spawn.ts, init.ts (config, presets, createGame).
  • src/render/ — three.js renderer behind the Renderer interface (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 (see public/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.