example-salt-ledger

The Salt Ledger

Enna's mother still lives on a street that the tide office has erased. Take the cancelled slip from Foldport's sorting rack and carry it inland. Each district has a working part of the sluice system, a witness and a brass pay tin. Follow the east trail after settling the local dispute. Around villages look for breaks in the yard rails, kiln racks and parapets. On open ground follow worn soil between root banks, wrack and hedges. Companions retrace the route you walk. The route journal names the next landmark and gives a clue for its first unfinished mechanism.

Run on Apple Silicon

From this directory, using Crystal, Ruby, CMake, make, the Garnet native dependencies and the macOS supplemental Arial and Georgia fonts:

./build /private/tmp/salt-ledger
/private/tmp/salt-ledger

The build reads the missing event, tween and LibSTBImage shard sources from the developer's local Garnet checkout at /Users/stephenbelanger/Code/crystal/garnet. For another installation, set GARNET_DEPENDENCY_ROOT to a checkout with those dependencies. Native support archives and the compiler cache go under CRYSTAL_CACHE_DIR (default /tmp/salt-ledger-crystal). The standalone binary reads assets from the worktree. The bundle copies assets, native libraries and notices into its own Resources and Frameworks directories.

mkdir -p /private/tmp/ledger-release
ruby bundle.rb /private/tmp/salt-ledger '/private/tmp/ledger-release/The Salt Ledger.app'
codesign --verify --deep --strict '/private/tmp/ledger-release/The Salt Ledger.app'
open '/private/tmp/ledger-release/The Salt Ledger.app'

The packager expects an unused output path and applies an ad-hoc signature for local play.

Controls

Action Keyboard Gamepad
Walk WASD or arrows Left stick
Talk, operate, advance, choose E, Enter or Space A
Move through choices Up and Down or W and S D-pad up/down
Open ledger or go back Tab or Escape Start or B

Click menu buttons with the mouse. Controls lets you rebind the advance letter and toggle audio; both are kept in Garnet settings. Save from the field ledger. Continue restores the versioned Garnet storage slot ~/Library/Application Support/The Salt Ledger/saves/slot-1.json. The party cannot save during a battle.

Mechanics

Each living companion acts once before the enemy resolves its displayed tell. Brace when the enemy announces a heavy hit to build a shared countersign. The next strike spends it for five extra damage and pierces the Writ Engine's ward. The four spells cost two MP each. Enna marks the next strike, Pell guards as he attacks, Issa inflicts burn and Orro casts the strongest direct spell. Retry restores the party as it entered the fight.

Every four XP earns a training point, up to four per companion. Choose a class discipline, spend the next point on an offensive or protective familiar, then spend the final two to certify the class focus. Focus replenishes ink and marks, guards, burns or heals depending on class. A town supplier sells the +2 strike tool for seven brass and interchangeable felt armor or copper spell lining for five each. Owned liners can be refitted free at any supplier. Salves cost three brass. A field salve restores twelve HP. Revisit a cleared town's counter for a free rest.

The coast skiff reopens once the Pleat Fields sails turn. Look in the woodland tin and return to Pell's former station for his rescue receipt. At Needle Rise the southeast hatch leads to the optional Underweir. Bring the lead weight to the balance and free the shift bell in the second chamber. Four main encounters and two optional encounters award one-time rewards. The finale returns to the title after the epilogue.

Implementation and verification

desktop.cr creates a World, adds App::Desktop (a fixed 960 × 600 logical canvas) and the Ledger::Game plugin, and calls world.run. The game's menus are the Mode world state; the campaign, party and battle live in the Console resource and the district scene in the same World; walking, menus and confirmation are input actions (:move, :advance, :confirm, :back, :menu_up, :menu_down) read by fixed-step systems. The rebindable advance letter uses Input::Plugin#capture_binding. Scene::Plugin draws the district through the camera's ScreenCamera3D, UI::Plugin runs the HUD and menus, Audio::Plugin plays the generated score from its mixer thread, and saves and options go through Garnet::Storage.

The stage adopts the authored districts and interiors from assets/scenes into that World. Reusable scene instances carry local transforms, material/mesh references, moving parts and collision footprints; their components are registered from @[SceneData::Component] annotations in set_library.cr. Flying seabirds and woodland birds use procedural Garnet models with translation and wing-rotation clips played by scheduled model-scene bindings. The maintenance skiff and mountain hatch are nested scenes.

./build spec
./build engine-spec
SALT_CAPTURE=/private/tmp/ledger-captures /private/tmp/salt-ledger
SALT_HOST_FRAMES=120 /private/tmp/salt-ledger

SALT_CAPTURE runs the scripted review route through the game's actions under App::Capture (fixed steps, hidden window, and a recording of the session's input in review-input.json) and writes a PNG per shot. SALT_HOST_FRAMES opens a visible window, replays a short input tape and reports the audio device's statistics.

The journal district sketch uses the same route lines and actual transformed obstacles as the playable scene. Static district furniture is packed by material and location when a district first appears. Painted timber, metal, plaster and stone use a three-metre repeat sampled from a 384-pixel swatch. The 3072 × 1920 ground spans 28 × 17 metres. Walking frames, billboards and moving machinery remain independently animated. The field albedos can be rebuilt with python3 art/bake_ground.py using NumPy and ImageMagick.

In Foldport, enter the office with the red-striped awning, read the left sorting rack and take the slip to the sorter at the central counter. Leave through the south door and walk east through the road sign to enter Wrack Steps. The pause and title menus both include Quit game.

A second optional survey runs through Foldport, Sallow Weald and Pleat Fields. Look for a brass-edged writing table. The Night Dial on the Drumhouse spur starts a sixth encounter. Heavy tolls drain unguarded allies.

The capture route operates the normal campaign, walks around furniture, activates the menus, reloads the mid-game save and checks the optional and main endings. It writes framebuffer-resolution PNG frames, including the approach and an overhead view of every district, and prints the slowest systems over 24 profiled frames in Foldport and Sallow Weald. The finite host run opens a visible window and reports actual audio-device statistics. Review saves stay under the capture directory.

The woodland path pulls south around uprooted trunks, crosses a brook and turns uphill to the resin altar. Salt scrub marks the Wrack Steps high-water line. Oat beds curve around the Pleat Fields vanes. Juniper and slate shelves separate the mountain lookout from the climb to the cairn. Cargo, pottery and instrument yards form the equivalent boundaries in town.

The island uses eight compact connected exterior districts, three civic interiors and two optional dungeon rooms. The camera angle is fixed. Encounters take place at their district's mechanism. The design target was a 20–35 minute first visit. The automated route skips reading time, so it does not establish a first-player duration.

Original design · Art sources and processing

Prior verified local build

The packaged game uses source revision e49e2fd6b9466d1c2a7bd72a7a9cd18bc62e741a. The design was committed before implementation at d676c19474ffe628d1b3202896e21011435787fb.

The ad-hoc signed app passed deep, strict signature verification. All 13 Mach-O images support arm64, and all dependencies resolve within the bundle or to macOS system libraries. The signed executable completed the title-to-ending route, recruited the full party, opened all eight tins, restored a trained and equipped party from disk, won all five encounters and returned to the title. The headless release suites passed 25 game examples and 23 engine examples.

The visible Foldport run presented 180 frames in 2.70 seconds and the audio device consumed 129,654 frames with zero underruns. Separate 1536 × 960 offscreen measurements over 24 warm frames, including synchronous GPU readback, had medians of 42.18 ms in Foldport and 69.32 ms in Sallow Weald. Window and audio log · Walkthrough and timing log

The scene library has 94 editable documents. Curved route spines, clustered obstacles and their footprints leave a clear walking corridor, including along both sides of the estuary landing. Near settlements, property lines and retaining walls organize the route around work areas. The fixed camera, repeated rock and masonry forms and limited character animation remain visible at normal play scale. Controls were exercised through the game's input paths. Physical gamepad play and first-time human completion time remain unmeasured.

Repository

example-salt-ledger

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 0
  • about 13 hours ago
  • November 30, 2026
License

Links
Synced at

Wed, 02 Dec 2026 02:09:53 GMT

Languages