example-vesper-hollow
The Final Toll
In Boss Hunt, cut down the horde to draw out the boss. Larger parties must defeat more monsters. Defeat the boss to break the curse and banish the remaining monsters together. The four bells stand in the Sundered Nave, Widow’s Acre, the Sexton’s House, and Marrow Vault. Indoor bells hang from timber frames, and the graveyard bell hangs under a stone canopy. Ringing a bell deals 8 damage to each ordinary monster within 14 tiles of the bell and stuns survivors for 3.2 seconds. Recovering monsters wander for another 2.8 seconds before they can hunt again. They then resist bell stuns and confusion for three seconds, even when another bell rings. Each monster cries out from its location after a short, randomized delay following the toll. The starting pistol deals 13 damage per hit. A bell swings for eight seconds before it can ring again. Nearby recovered monsters and new reinforcements converge on the most recently rung bell while it swings. A bell’s 14-tile radius covers most of its district and can reach nearby floors and streets.
Each New Game joins nine 17 × 17 tile districts into a branching map. Raised balconies connect separate buildings over outdoor areas while leaving ground routes underneath. A high doorway also connects a pair of adjoining buildings on their third floors. In some layouts it leads to a chapel loft above a nave with no second story. Walk through open ledges or jump over railings to drop to the floors below.
From outside you can see the roofline, walls and upper windows of the building you are entering. The abbey and chapel have open naves, the crypt has burial aisles, the house has smaller rooms, and the street has a broad road between the shopfronts. Outdoor paths connect the gates and lead past benches, street lamps, planters, and trail markers. District positions, building orientations, gate connections, furnishing locations, obstacles and loot vary with the seed.
Play on macOS
Open the bundled The Final Toll app. It includes its native libraries and baked artwork.
Choose Start Game and highlight a mode to read its objective, then select Play or Custom Seed. Type up to 16 hexadecimal digits or use the on-screen keypad with a mouse or controller. Typing also works when a controller leads the lobby. The optional 0x prefix matches the seed shown on both end screens. The same mode, seed, and party size reproduce the map and its objectives. From either end screen you can retry it, play a new seed, or return to the title.
| Mode | Objective |
|---|---|
| Boss Hunt | Kill enough monsters to awaken the boss, then defeat it. |
| Consecration | Find one circle per hunter. Hold all circles together for seven seconds, with a different standing hunter in each and no monsters contesting any circle. Progress pauses whenever a circle is empty or contested. |
| Relic Hunt | Solve the landmark riddle at the end of the intro. Clear the guards around the relic and bring it back to the entrance. Larger parties face more guards. Skipping the intro jumps to the riddle. If the bearer falls, recover the dropped relic. |
| Lantern Relay | Use Interact to take the lantern and carry it through three checkpoints. The bearer moves at 70% speed and puts their weapons away. Stay inside the visible light to escort the bearer. Monsters take damage in the light, rush in to strike and retreat, and favor exposed hunters or a bearer left alone. Interact again to pass or drop the lantern. A downed bearer drops it, and it keeps burning on the ground. |
| Breakout | Get every hunter to an exit while an unkillable creature pursues the party. Teammates can use different exits. Revive anyone who goes down before escaping. |
| Survive Until Dawn | Hold out against increasingly frequent reinforcements. If a hunter is still alive at 105 seconds, the timer stops and the sun rises. |
Every victory starts with a full-screen banishment. The remaining monsters shake apart and vanish to a rising chord and positional death cries, then the victory cinematic plays. Consecration opens the banishment with golden light rising from a sealed circle.
Choose Start Game, Settings, or Exit Game from the title. Menus work with the mouse, keyboard arrows and Enter, or D-pad and A / Cross. Click a tab, press Tab or Q / E, or use the controller bumpers to switch tabs. Use left/right to adjust a setting. Settings apply immediately and are saved locally. Resume and Return to Menu are available from pause.
- Graphics adjusts image filtering, brightness, V-sync, resolution and fullscreen. Windowed and fullscreen resolutions are saved separately.
- Audio adjusts master, music and effects volume.
- Gameplay adjusts look sensitivity, vertical inversion and damage-induced screen shake. Look settings apply to mouse, keyboard aim and controller aim for the whole local party.
| Control | Action |
|---|---|
| Enter | Confirm the selected menu item, or skip a cinematic |
| W / A / S / D | Move forward, strafe left, back up, strafe right |
| Mouse or arrow keys | Turn and aim up or down |
| Left mouse or Space | Fire, hold for sustained fire |
| E | Revive a nearby downed ally or ring a settled bell |
| J | Jump. Move while airborne to clear a railing |
| 1–4 | Select an owned weapon. Lit numbers on the HUD show ownership |
| Tab | Open or close the chart |
| [ / ] or Page Down / Page Up | Browse chart floors while the chart is open |
| R | Reload the equipped weapon |
| Esc | Pause or go back in a menu |
At the title screen, press Start / Options / + on each controller that will play. The first becomes P1. To use keyboard and mouse as P1, use a keyboard arrow before anyone joins. Subsequent Start presses fill the remaining seats in order, including when controllers have the same model and name. Each joined player can choose a class with D-pad Left/Right. A guest can leave using the right face button. P1 operates the menus and launches the expedition. Two hunters have side-by-side views and three or four share a four-pane grid. Each hunter has a color and numbered HUD. Any joined player can pause the party. Items go to the hunter who picks them up. Bells, enemy kills and the final score belong to the team.
A hunter at zero health stays down until a living teammate presses E or X within reach. Revival restores 35 health with two seconds of protection. The expedition ends when the entire party falls or the boss dies.
| Controller | Action |
|---|---|
| Left stick | Move at analog speed |
| Right stick | Aim horizontally and vertically |
| RT / R2 | Fire, hold for sustained fire |
| LB / L1 and RB / R1 | Cycle through owned weapons |
| Y / Triangle or View / Share | Toggle the map |
| D-pad Up / Down | Browse chart floors while the chart is open |
| A / Cross during play | Jump |
| X / Square during play | Revive a nearby ally or ring a bell |
| B / Circle during play | Reload |
| Start / Options | Pause or resume in play |
| A / Cross and B / Circle | Confirm or go back in menus |
| Starting class | Weapon | Damage | Shot interval | Magazine | Reload | Range (tiles) |
|---|---|---|---|---|---|---|
| Warden | Vigil Nine | 13 | 0.18 s | 12 | 1 s | 22 |
| Marksman | Saint’s Writ | 33 | 0.42 s | 6 | 1.5 s | 55 |
| Sexton | Choir Pump | 6 × 11 | 0.65 s | 4 | 0.55 s per shell | 14 |
| Breacher | Wake Twins | 10 × 10 | 0.95 s | 2 | 1.7 s | 9 |
Ammo reserves are unlimited. Empty magazines reload automatically, with a weapon animation and progress bar. Press R or B / Circle to reload early. Fire to interrupt the pump reload once a shell is loaded. Switching weapons cancels a reload. Walk over Saint’s Writ, the Choir Pump and the Wake Twins to acquire them with a full magazine. The HUD shows each gun's magazine count. Hearts restore up to 35 vitality. A turquoise ward gives nine seconds of immunity.
Pickups return to the same spot after they are taken. Weapons return after 30 seconds, hearts after 40, and wards after 55. A full-health hunter leaves hearts for an injured teammate. A ward or weapon stays available if the hunter already has that protection or owns that weapon.
The party uncovers the chart together as each hunter explores within three tiles. Each floor has its own fog. The chart marks stairs, elevated passages, allies, and discovered supplies. Purple shows supplies and bells that are cooling down, orange means they are nearly ready, and their usual colors show they are available.
A short shared cinematic previews each newly active destination and pauses the expedition. Breakout previews both exits. Consecration previews all circles before play resumes. In play and on the chart, teal circles are open, gold circles are held, and orange circles are contested. Lantern Relay previews each checkpoint as it becomes active. Relic Hunt previews the return route when the relic is found. Once any hunter reaches a destination on the correct floor, the chart marks it for everyone. A small 3D arrow at the top of each hunter's view points toward the destination's center until they arrive. Destinations on another floor also show an up or down hint. In Lantern Relay, the arrow points to the lantern whenever it is uncarried and returns to a discovered checkpoint once someone picks it up.
The shared bottom bar reserves four color-coded slots for health, ward time, weapon slots, magazine counts, and reload progress. Two-player views fill the height above it. Each hunter sees their own interaction and objective prompts in their view. The prompt by a swinging bell shows when it can ring again. One of three bosses is randomly selected from the expedition seed and claims an outdoor district after the party has killed enough monsters, including kills from bell damage. The chart outlines the boss’s district while the fight lasts. Combat pauses while a shared camera shows the boss emerging and roaring, with its district named on screen. Each hunter then returns to their own view, and one boss health meter sits at the top of the shared bar. The Antlered Dead sends shockwaves along the ground. The Cinder Fiend throws a spread of fire. The Pall Widow fires staggered volleys of slowing web. Each telegraphs its attack before firing. Retreat to a neighboring district to break off an encounter.
Each new expedition opens with three moving shots of its districts and patrols. The objective lines type in over the views. Press Enter or Space to skip. The expedition starts when the intro ends.
The boss’s death takes over the whole screen before the three-shot dawn epilogue. Victory awards 4,000 points. Each scored horde kill adds 60 points, worth four seconds of expedition time. Kills count toward the bonus up to the boss’s awakening threshold plus one extra kill per hunter. The tally also shows the total horde kills. Each second and each point of damage taken subtract 15. The final score has a floor of zero. The run clock stays frozen in menus and cinematics. Retry preserves your mode and seed. New Game preserves your mode and generates a different expedition.
Wolves pause before committing to a lunge, so a sidestep can make them miss. Cantors strafe quickly to take cover behind scenery before closing in. Veils start to fade into view about three and a third tiles away. Marrow archers back away to keep firing distance and release fast arrows. Bolder archers fire paired shots, and individual creatures vary in detection range, pursuit speed and recovery time. Zombies start in the graveyard and join reinforcement waves. They take 1.3 seconds to react, shamble at a fraction of a hunter’s speed, and groan before a 32-damage swing. Keep moving to pass one safely.
The expedition starts with nine monsters and adds four for each extra player. Reinforcement waves arrive every five seconds, with one monster per standing hunter when there is room to spawn safely. After about eight seconds spent in the same small area, they start spawning closer. After about eighteen seconds they can come in closer still. Moving away relieves the pressure, and previously occupied spots cool off over time. The first reinforcements can arrive within a second of the boss waking, then arrive at increasingly short intervals, from three seconds down to 1.8 seconds, until the fight ends. Ringing a bell can draw part of the wave away from the party. Shots and projectiles collide with the individual solid pieces of scenery, leaving openings between them clear.
Build on Windows
Set up the Windows toolchain from the workspace's getting-started guide: MSVC, Crystal, GNU make, GLFW 3.4 and vcpkg's harfbuzz[core], fribidi and libunibreak. Then, from a Developer Command Prompt with scripts on PATH:
cd example-vesper-hollow
garnet build --target desktop-gl
.garnet\build\desktop-gl-debug\TheFinalToll.exe
The desktop-vulkan target builds the same game on the Vulkan renderer.
garnet build copies the GLFW, Boehm GC and vcpkg DLLs beside the executable. Gamepads are read through GLFW on Windows. CI builds both targets on windows-latest and renders frames on Mesa llvmpipe and lavapipe.
Reproduce a run
Use Custom Seed from the title to replay a recorded seed in any mode. Set VESPER_SEED=701 when launching the executable to give the first Play run a fixed map for scripted checks.
The macOS build uses SDL3 for gamepad input. Install sdl3 from Homebrew when building from source. The macOS app bundles the library.
From the Garnet workspace root:
TMPDIR=/tmp scripts/check-composition example-vesper --release
(cd example-vesper-hollow && ../scripts/garnet test)
ruby example-vesper-hollow/bundle.rb /tmp/vesper-hollow "/tmp/The Final Toll.app"
VESPER_SEED=701 VESPER_CAPTURE=/tmp/vesper-captures "/tmp/The Final Toll.app/Contents/MacOS/TheFinalToll"
VESPER_CAPTURE adds the Hollow::Smoke plugin. It runs on App::Capture (one fixed 1/60 s step per frame, hidden window) and drives the menus and pads with Input::Tapes replayed through the live input path, so it exercises the same controls as play. It tours the settings, pilots the first hunter through Boss Hunt (walking, collecting weapons, ringing a bell and defeating the boss), then starts a different map and stages five isolated creatures in the entrance aisle to capture their damage effects, and finally checks idle death and a same-seed retry. Each screenshot is a PNG named after what it shows. Set VESPER_SMOKE_TRACE=300 to log progress every 300 frames. VESPER_DISPLAY_SMOKE=1 also steps the windowed resolution and toggles fullscreen (skipped when GLFW reports no monitor), and VESPER_MODE_SMOKE=1 starts every mode from the custom seed 0xfffffffffffffd43 (-701), typed as text, and checks that both retries keep the mode. On the way it captures the Relic Hunt riddle (riddle), the guards blocking the relic until they are cleared (relic-guards), every destination preview (destination-<mode>), the waypoint arrow to the lantern (waypoint-lantern-relay), and the victory banishments of Relic Hunt, Consecration and Survive Until Dawn (victory-<mode>-1..3; the dawn's second shot catches the sunrise), and checks that previews hold the clock.
For a scripted co-op run, set VESPER_COOP_PLAYERS to 2, 3 or 4 alongside VESPER_CAPTURE. A keyboard arrow makes the keyboard P1, then virtual pads 11, 9, 5 and 2 press Start in that order and must take the seats in press order; an unjoined pad's sticks must not move P1. Guests pick a class, a guest's A can't operate the menu, the party walks and aims, a guest pauses, and the boss cinematics take over every pane. VESPER_COOP_PAD_PRIMARY=1 makes the first pad P1 instead (it confirms the menus and resumes from pause with Start). In a standalone worktree without the release helpers, set GARNET_RELEASE_TOOLS to the absolute scripts/release directory of the source checkout. The bundle output path must be unused.
Implementation
level.cr builds the districts and defines the ground, stair treads, upper floors, wall openings and roof profiles. game.cr handles traversal, combat and inventory. encounter.cr schedules new enemies and shares pathfinding between monsters pursuing the hunter or a bell. Grounded creature walk cycles advance with distance traveled, while the veil drifts and attacks use separate poses. view.cr projects horizontal surfaces and vertical faces along each grid ray and depth-tests sprite pixels. Oil lamps flicker over a short radius. The camera shifts the horizon for vertical aim, and the shot slope follows the center crosshair. The sweeping stairs use grid-aligned treads.
props.cr builds the fixtures, trees, graves, coffins, and lamps from colored 3D pieces. The level indexes their bounds for drawing, movement, and shot tracing.
main.cr builds one World via Garnet::DefaultPlugins (replacing the default Input::Plugin with Hollow::Bindings in frame mode so unjoined pads can't drive menus: global_devices: :keyboard_and_seated), Garnet::Storage for settings, and a GCPolicy that collects between frames, then Soundscape, VesperHollow and Shell, and calls world.run. Both desktop-gl and desktop-metal targets are configured in garnet.project.json. On macOS it requires garnet-platform-glfw/sdl_gamepads, so pads are read through SDL3.
entities.crdefines the components. Creatures, hunters, bolts, bells, supply spots, impact sparks and remains decals are entities, all children of one expedition root entity thatGame#disposedestroys.Actor,HunterandBoltare handles whose fields read and write those components. Creature and decal stores keep spawn order (World#keep_order), and bells and supply spots are found by cell throughWorld#index.simulation.crregisters the gameplay systems (hollow.hunters,hollow.director,hollow.creatures,hollow.bolts,hollow.objective).Gameis the expedition resource they share, andGame#tickruns a World frame. Hunter timers (one keyedGarnet::Timersper hunter), fire cooldowns, hit flashes, restocks and wind gusts use the gameplay kit, and creature attack and recovery countdowns use manual-clockTimerskeys the AI ticks only while hunting. Gameplay sounds areEffectSoundandCreatureSoundWorld events.app.crholds the screens (aScreenstate stack: Settings and Paused are pushed over what opened them, and change at once withpush!/pop!/set!), the local party (PartySeatplusInput::Playerper seat; pads press Start to join, and P1 drives menus and cinematics through its seat'sActionState), the controls, the shared cinematics (DestinationReelpreviews as aScreen::Destinationstate pushed over play,VictoryReelframing every victory's banishment) and the per-pane drawing. Menus consume the press that changes the screen, so it can't also act on the new one.menu.crstores preferences inGarnet::Settings.shell.crstreams each pane into aStreamingTextureshown by a scene entity: gameplay panes sized byPlayLayoutwith the shared footer status bar beneath them, or one letterboxed 480 × 270 screen for menus and cinematics. It locks the pointer during play and applies display settings to the window.play_layout.crsplits the window into one pane per hunter above the footer and sizes each pane's raycast so pixels stay square.destination_reel.cr,victory_reel.crandwaypoint_marker.crstage the destination previews, the victory banishment (with Survive Until Dawn's sunrise overassets/horizon_day.rgba) and the 3D arrow toward a discovered destination.modes.crholds the objectives. Relic Hunt guards are creatures tagged with aRelicGuardcomponent (encounter.cr); the lantern's light (RelayLight) burns and repels creatures through extraBrainfields.sound.crplays the score and spatial effects throughAudio::Plugin. Gameplay sound events play withOutput#play_at, heard from the hunters set asOutput#listeners=; split-screen shares a stereo mix across hunters, and the boss cinematics use the shared camera's position. The low pipes and distant bells are synthesized at the output sample rate.smoke.cris the scripted capture run described above.bench.crmeasures the simulation's cost per frame (crystal run --release bench.crwith the project'sgarnet env).
To regenerate the original art run python3 assets/draw.py with ImageMagick, librsvg and Georgia available. python3 assets/draw_bosses.py regenerates the boss sprites.
example-vesper-hollow
- 0
- 0
- 0
- 0
- 0
- about 2 hours ago
- November 30, 2026
Thu, 03 Dec 2026 11:36:13 GMT