Add visual novel sprite staging
This commit is contained in:
parent
364fc80f44
commit
9001ef6ab2
9 changed files with 727 additions and 19 deletions
|
|
@ -21,11 +21,24 @@ older GameCult files already used both.
|
|||
"speakers": {
|
||||
"Void": {
|
||||
"name": "Void",
|
||||
"avatar": "void.png"
|
||||
"avatar": "void.png",
|
||||
"default_sprite": "idle",
|
||||
"sprites": {
|
||||
"idle": "sprites/void-idle.png",
|
||||
"welcome": {
|
||||
"image": "sprites/void-welcome.png",
|
||||
"position": "left",
|
||||
"scale": 1.08
|
||||
}
|
||||
}
|
||||
},
|
||||
"Aqua": {
|
||||
"name": "Aqua",
|
||||
"avatar": "aqua.png"
|
||||
"avatar": "aqua.png",
|
||||
"sprites": {
|
||||
"idle": "sprites/aqua-idle.png",
|
||||
"listen": "sprites/aqua-listen.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dom_cards": {
|
||||
|
|
@ -47,12 +60,22 @@ Useful Ink tags:
|
|||
# scene: agora
|
||||
# speaker: Void
|
||||
# avatar: void
|
||||
# sprite: welcome@left
|
||||
# sprites: Void.welcome@left, Aqua.listen@right
|
||||
# dom: roadmap, receipts
|
||||
```
|
||||
|
||||
Sai resolves assets relative to `asset_base` unless the asset is already an
|
||||
absolute URL or root-relative path.
|
||||
|
||||
Sprite tags are optional. If no sprite tag is present, Sai tries to show the
|
||||
current speaker's `default_sprite`, then `idle`, then `default`. Use
|
||||
`# sprite: none` to hide sprites for a line. Use `# sprite:` for the current
|
||||
speaker and `# sprites:` for a comma-separated stage composition. Sprite
|
||||
references accept `expression@position`, `Actor.expression@position`, or
|
||||
`Actor.expression:position`. Common positions are `farleft`, `left`,
|
||||
`midleft`, `center`, `midright`, `right`, and `farright`.
|
||||
|
||||
The optional `dom_cards` map lets a visual-novel line stage existing page DOM
|
||||
inside the scene. Each card points at a selector in the rendered document; Sai
|
||||
clones that element into the stage, strips duplicate `id` attributes from the
|
||||
|
|
@ -101,6 +124,5 @@ default caption.
|
|||
|
||||
## Stability
|
||||
|
||||
This manifest is intentionally small. Sprite staging is the obvious next organ,
|
||||
but it should extend the scene/speaker model instead of becoming a separate
|
||||
runtime.
|
||||
This manifest is intentionally small. Sprite staging extends the scene/speaker
|
||||
model; it is not a separate VN engine loop.
|
||||
|
|
|
|||
Loading…
Reference in a new issue