From d99a5b9ec3ee8af9dfe5eca9498de5126461bf9d Mon Sep 17 00:00:00 2001 From: Nick Thomas Date: Fri, 10 Apr 2020 19:24:03 +0100 Subject: [PATCH] Instantiate a ship on startup --- internal/ordoor/ordoor.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/ordoor/ordoor.go b/internal/ordoor/ordoor.go index f7e1d5f..6730c5e 100644 --- a/internal/ordoor/ordoor.go +++ b/internal/ordoor/ordoor.go @@ -35,13 +35,14 @@ type Ordoor struct { music *audio.Player win *ui.Window - ship *Ship - state gameState nextState gameState // Relevant to interface state flow *flow.Flow + + // Relevant to campaign state + ship *Ship } func Run(configFile string, overrideX, overrideY int) error { @@ -74,6 +75,7 @@ func Run(configFile string, overrideX, overrideY int) error { ordoor := &Ordoor{ assets: assets, config: cfg, + ship: &Ship{}, state: StateInterface, nextState: StateInterface, }