This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
package lib
|
||||
|
||||
import p "git.teletypegames.org/games/pncdsl"
|
||||
import p "git.teletypegames.org/games/inkwell"
|
||||
|
||||
// Assets lists every asset the game references. Files don't need to
|
||||
// exist on disk — the library substitutes deterministic colored
|
||||
|
||||
@@ -3,7 +3,7 @@ package lib
|
||||
import (
|
||||
"image/color"
|
||||
|
||||
p "git.teletypegames.org/games/pncdsl"
|
||||
p "git.teletypegames.org/games/inkwell"
|
||||
)
|
||||
|
||||
var Cat = p.Character{
|
||||
|
||||
@@ -3,7 +3,7 @@ package lib
|
||||
import (
|
||||
"image/color"
|
||||
|
||||
p "git.teletypegames.org/games/pncdsl"
|
||||
p "git.teletypegames.org/games/inkwell"
|
||||
)
|
||||
|
||||
var Player = p.Character{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package lib
|
||||
|
||||
import p "git.teletypegames.org/games/pncdsl"
|
||||
import p "git.teletypegames.org/games/inkwell"
|
||||
|
||||
var CatMorning = p.Dialogue{
|
||||
Name: "cat_morning",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package lib
|
||||
|
||||
import p "git.teletypegames.org/games/pncdsl"
|
||||
import p "git.teletypegames.org/games/inkwell"
|
||||
|
||||
var Beans = p.Item{
|
||||
Name: "beans",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package lib
|
||||
|
||||
import p "git.teletypegames.org/games/pncdsl"
|
||||
import p "git.teletypegames.org/games/inkwell"
|
||||
|
||||
var Key = p.Item{
|
||||
Name: "key",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package lib
|
||||
|
||||
import p "git.teletypegames.org/games/pncdsl"
|
||||
import p "git.teletypegames.org/games/inkwell"
|
||||
|
||||
var Mug = p.Item{
|
||||
Name: "mug",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package lib
|
||||
|
||||
import p "git.teletypegames.org/games/pncdsl"
|
||||
import p "git.teletypegames.org/games/inkwell"
|
||||
|
||||
var Bedroom = p.Scene{
|
||||
Name: "bedroom",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package lib
|
||||
|
||||
import p "git.teletypegames.org/games/pncdsl"
|
||||
import p "git.teletypegames.org/games/inkwell"
|
||||
|
||||
var Kitchen = p.Scene{
|
||||
Name: "kitchen",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package lib
|
||||
|
||||
import p "git.teletypegames.org/games/pncdsl"
|
||||
import p "git.teletypegames.org/games/inkwell"
|
||||
|
||||
var IntroScript = p.Script{
|
||||
Name: "intro",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package lib
|
||||
|
||||
import p "git.teletypegames.org/games/pncdsl"
|
||||
import p "git.teletypegames.org/games/inkwell"
|
||||
|
||||
var VictoryScript = p.Script{
|
||||
Name: "victory",
|
||||
|
||||
+3
-3
@@ -3,10 +3,10 @@ package lib
|
||||
import (
|
||||
"log"
|
||||
|
||||
p "git.teletypegames.org/games/pncdsl"
|
||||
p "git.teletypegames.org/games/inkwell"
|
||||
)
|
||||
|
||||
// Run builds the game and hands it to the pncdsl engine. It is the
|
||||
// Run builds the game and hands it to the inkwell engine. It is the
|
||||
// single entry point referenced from main.go.
|
||||
func Run() {
|
||||
if err := p.Run(Build()); err != nil {
|
||||
@@ -50,7 +50,7 @@ func Build() *p.Game {
|
||||
p.RegisterRichUI(g, "", "cat")
|
||||
// Replace the framework's in-game ChatLog with the demo's own
|
||||
// click-and-type GameChat panel — game-independent chatter that
|
||||
// does not belong in the pncdsl library.
|
||||
// does not belong in the inkwell library.
|
||||
g.UIManager.Remove("chat")
|
||||
g.UIManager.Register(Chat)
|
||||
// Swap the rich UI's always-visible verb wheel for a right-click,
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package lib
|
||||
import (
|
||||
"image/color"
|
||||
|
||||
p "git.teletypegames.org/games/pncdsl"
|
||||
p "git.teletypegames.org/games/inkwell"
|
||||
)
|
||||
|
||||
// MorningCoffeeTheme is the game-specific palette: warm coffee browns
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"github.com/hajimehoshi/ebiten/v2/inpututil"
|
||||
"github.com/hajimehoshi/ebiten/v2/vector"
|
||||
|
||||
p "git.teletypegames.org/games/pncdsl"
|
||||
p "git.teletypegames.org/games/inkwell"
|
||||
)
|
||||
|
||||
// GameChat is a stand-alone chat panel: click to focus, type a message,
|
||||
@@ -190,11 +190,11 @@ func (c *GameChat) Draw(dst *ebiten.Image, ctx *p.UICtx) {
|
||||
vector.DrawFilledRect(dst, float32(b.X), float32(inY), float32(b.W), 1, border, false)
|
||||
}
|
||||
|
||||
// BlocksClickAt implements the pncdsl clickBlocker contract so the
|
||||
// BlocksClickAt implements the inkwell clickBlocker contract so the
|
||||
// verb-coin doesn't pop up over the chat panel.
|
||||
func (c *GameChat) BlocksClickAt(pt p.Point) bool { return c.Bounds.Contains(pt) }
|
||||
|
||||
// chatTextWidth mirrors the pncdsl text width estimate for the bundled
|
||||
// chatTextWidth mirrors the inkwell text width estimate for the bundled
|
||||
// debug font (~6 px / glyph). Kept private to the demo.
|
||||
func chatTextWidth(s string) int { return len(s) * 6 }
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/hajimehoshi/ebiten/v2"
|
||||
"github.com/hajimehoshi/ebiten/v2/inpututil"
|
||||
|
||||
p "git.teletypegames.org/games/pncdsl"
|
||||
p "git.teletypegames.org/games/inkwell"
|
||||
)
|
||||
|
||||
// SaveKeys is a no-draw widget that binds F5 → Save(slot 0) and
|
||||
|
||||
Reference in New Issue
Block a user