Log inGet started
Package

main.scene

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

main: The Undercroft

The game's one scene. It holds both halves of The Undercroft side by side, so a co-op party never changes scene: the abbey camp where a run starts and ends, and the crypt floors the run descends through.

What is in it

PartMade byWhat it is
ArpgHealthRules, ArpgRun, ArpgHud, ArpgDamageNumbersarpgKit Arpg.placeThe action RPG setup in roguelite mode: no free "Rise again", a downed pilgrim waits for a partner (revive "ally", 30 s bleed-out), the HUD (health and stamina orbs, skill bar, room tracker, minimap) and floating damage numbers.
PlayerSetups, Player, body, CameraRig, Spawns, StartarpgKitThe pilgrim's body with the engine character controller and the high, angled ARPG camera, and the spawn point.
classKitHostclassKit Classes.placeClassBearer on the hero body, so every peer sees which pilgrim each player chose.
campthe game's camp.AbbeyCamp scene module, at x = -200The ruined abbey cloister at night: the bonfire, the class lectern (west), the Star Vault altar under the painted constellations (north), the bell rope for challenges (east) and the crypt stair (south).
undercroftthe game's game.CampStations componentThe prompt cards and Interact handling for the four camp stations.

The crypt floors are not saved in the scene: on every floor the host builds rooms, corridors, monsters, traps, the secret niche and (on the last floor) the Ossuary Nave and the Hollow Abbot from the run's seed, and every peer builds the same floor from that seed.

How it runs

  • build.luau places the parts above; re-run it with scene.reload only once every kit has loaded (modules.diverged() empty), because a reload saves the scene.
  • entrypoint.luau starts game.director, which drives title, camp, run, floors, relic picks, the boss and the end screens through runLoopKit, menusKit and the bridges in game/.

See the world's README for how to play and which kits do what.