new theme
This commit is contained in:
@@ -25,10 +25,20 @@ func Build() *p.Game {
|
||||
defineBedroom(g)
|
||||
defineKitchen(g)
|
||||
|
||||
// SCUMM-style HUD. Swap for p.RegisterRadialVerbUI(g) to try the
|
||||
// verb-coin variant, or build a fully custom widget set by calling
|
||||
// g.UIManager.Register(...) directly.
|
||||
p.RegisterDefaultUI(g)
|
||||
// Story-rich HUD: top bar + character panels + chat log + permanent
|
||||
// verb wheel + small inventory. Swap for p.RegisterDefaultUI(g) to
|
||||
// get the simpler SCUMM-style layout, or p.RegisterRadialVerbUI(g)
|
||||
// for a verb-coin (right-click) layout.
|
||||
p.RegisterRichUI(g, "player", "cat")
|
||||
g.MaxLogLines = 64
|
||||
|
||||
// initial HUD vars
|
||||
g.State.SetVar("score", 0)
|
||||
g.State.SetVar("time", "Nap 1 - 07:23")
|
||||
g.State.SetVar("player.state", "Ébren")
|
||||
g.State.SetVar("player.mood", "Álmos")
|
||||
g.State.SetVar("cat.state", "Várakozik")
|
||||
g.State.SetVar("cat.mood", "Türelmetlen")
|
||||
|
||||
g.StartAt("bedroom").OnStart(p.RunScript("intro"))
|
||||
return g
|
||||
|
||||
@@ -5,6 +5,7 @@ import p "pncdsl/pncdsl"
|
||||
func defineBedroom(g *p.Game) {
|
||||
g.SceneManager.Register(p.Scene{
|
||||
Name: "bedroom",
|
||||
Title: "Hálószoba",
|
||||
Background: "bg/bedroom",
|
||||
Music: "mus/wakeup",
|
||||
Actors: []p.SceneActor{
|
||||
|
||||
@@ -5,6 +5,7 @@ import p "pncdsl/pncdsl"
|
||||
func defineKitchen(g *p.Game) {
|
||||
g.SceneManager.Register(p.Scene{
|
||||
Name: "kitchen",
|
||||
Title: "Konyha",
|
||||
Background: "bg/kitchen",
|
||||
Music: "mus/calm",
|
||||
Actors: []p.SceneActor{
|
||||
|
||||
@@ -10,6 +10,7 @@ func defineIntroScript(g *p.Game) {
|
||||
p.Say("player", "Brr, hideg van."),
|
||||
p.Say("player", "Egy kávé kéne, mielőtt szétszakad a fejem."),
|
||||
p.Walk("player", p.Point{X: 200, Y: 145}),
|
||||
p.SetVar("player.mood", "Eltökélt"),
|
||||
),
|
||||
})
|
||||
}
|
||||
|
||||
@@ -11,6 +11,9 @@ func defineVictoryScript(g *p.Game) {
|
||||
p.Wait(0.6),
|
||||
p.Say("cat", "Mióóóóu. *boldog macska*"),
|
||||
p.Say("player", "Reggeli kávé: megmentve."),
|
||||
p.SetVar("score", 100),
|
||||
p.SetVar("player.mood", "Boldog"),
|
||||
p.SetVar("cat.mood", "Boldog"),
|
||||
p.ShowEnd("Vége — kösz, hogy játszottál!"),
|
||||
),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user