Log inGet started
World

Amagiri: Hollow Bell

Branchmain
Commitb5d6c56f4d

README.md

cast

The three who remain in Amagiri: Hozuki on the shrine platform, Ui in the drowned street, Kagen at the foot of the cliff path.

The slice puts three things into game.Game and owns nothing else:

WhatThroughRead by
five emotion frames per characterGame.registerPortraitvn
one conversation per characterGame.registerDialoguevn
one interactable per characterGame.registerInteractabletraversal

…and it builds the three bodies under its own slice root.

The pieces

ModuleWhat it holds
cast.modulethe slice: mounts the other three, wires the event handlers
cast.scriptsthe three dialogue trees, as data
cast.portraitsthe emotion frames and their registration
cast.figuresthe standing bodies, their rings and their lamps

portraits/ holds the baked frames — <character>_<emotion>.texture, fifteen of them.

The faces

Each character has five frames, one per Game.EMOTION. Every frame is that character's own body, so the face is the same face across all five; what changes between them is the pose, the light and the colour of the air:

EmotionThe frame
neutralsquare to you, even cold light
warmturned in, tilted, lit amber
hurtturned away, chin up, cold blue
angrychin down, seen from below, hard red
brokenhead far down, eyes lost in shadow, drained to grey

A portrait spec is the images shape:

local p = Game.portrait("hozuki")
p.images.warm    -- "cast.portraits.hozuki_warm", a texture asset identity
p.paths.warm     -- "/zero/source/cast/portraits/hozuki_warm.texture"

Hand images[emotion] to an image widget's src:

{ type = "image", props = { src = Game.portrait(id).images[emotion] } }

The conversations

Each tree has a route that ends in the spirit handing their Resonance over (grant, then done = "granted"), and a route that ends without it (done = "refused"). Kagen also has done = "left" — he has not finished with you and the conversation opens again unchanged.

Each also carries startFaded, a much shorter set used when Game.fading() > Game.tuning.fadedThreshold: by then the spirit has lost most of what they were willing to say, and there is one question left instead of three.

Once a conversation resolves, the slice swaps that script's start for an epilogue, so walking back to a spirit you have already spoken with is a different, shorter scene. Game.resetRun() puts the openings back.

CharacterResonanceOpens if youCloses if you
Hozukichimeask her for the thing rather than for her story, and let her hand it overtreat her brightness as the whole truth, or leave it with her out of pity
Uihushtell her the truth gently, neither playing along nor breaking it over herplay along until she stops asking, or say it flatly
Kagenedgesay plainly what the top is for, then ask what his refusal is holding backuse his failure as a lever, or reach for the edge like a gate key

The bodies

Three generated cel-shaded figures, each standing in a slow ring of its own resonance colour under a lamp of the same, so a spirit reads as a landmark through the fog. They carry no collider: they are spirits, and a body that stops you at the exact spot the interact prompt fires is worse to walk into than a spirit is to walk through. A spirit who has handed their piece over stops holding a light for it.

Rebuilding it

require("game.Game").rebuild("cast")