Talking-head dialogue: DialogueDirector, DialogueBox, conversations and speakers

Conversations saved in game/resources/dialogue/ play once at their night and
phase in a paper box with talking heads; example: the morning of day 2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Forrest 2026-10-07 21:33:54 -04:00
parent bbd8012fff
commit 1d92f49d96
22 changed files with 1158 additions and 2 deletions

View file

@ -22,6 +22,8 @@ signal campaign_ended(outcome: Outcome)
## The dawn grace is over: listeners settle the night (enemies leave, loot on the ground returns)
## before its losses are recorded and the outcome is checked.
signal night_ending
## A vacation starts: a new one (new_campaign) or a saved one continued (load_state).
signal started
@export var config: GameConfig
@ -57,6 +59,7 @@ func _physics_process(delta: float) -> void:
func new_campaign() -> void:
state = FarmState.create(config)
outcome = Outcome.CONTINUE
started.emit()
_enter(Phase.MORNING)
@ -106,6 +109,7 @@ func advance_phase() -> void:
func load_state(saved: FarmState) -> void:
state = saved
outcome = Outcome.CONTINUE
started.emit()
_enter(Phase.MORNING)