screen to scene
ci/woodpecker/push/ebitengine Pipeline was successful

This commit is contained in:
2026-08-30 00:15:26 +02:00
parent 94649a38fe
commit da1410cb4a
62 changed files with 623 additions and 615 deletions
+10 -4
View File
@@ -5,18 +5,25 @@ import (
)
type Opts struct {
Screen string
Scene string
Finale bool
}
func New(o Opts) *inkwell.Game {
start := o.Screen
start := o.Scene
if start == "" {
start = ScreenAlley
start = SceneAlley
}
g := inkwell.NewGame("Real World", ScreenW, ScreenH)
g.MaxLogLines = 64
g.SceneRect = inkwell.Rect(0, TopBarH, ScreenW, HUDTop-TopBarH)
g.ExitLook = func(e inkwell.Exit) inkwell.Action {
return inkwell.Say(Paul, "That way: "+e.Label+".")
}
g.ExitTake = func(inkwell.Exit) inkwell.Action {
return inkwell.Say(Paul, "It's a way out, not a thing.")
}
World.attach(g)
registerTheme()
@@ -32,7 +39,6 @@ func New(o Opts) *inkwell.Game {
func bootOpening(start string, finale bool) []inkwell.Action {
acts := []inkwell.Action{
EnterScene(start),
inkwell.SetFlag(FlagPoliceTip),
inkwell.Say(Paul, "Back alley. Just like the clerk said."),
TapeSay(Dex, "A government office tipped you off to remove something from a scene. That doesn't strike you as odd?"),