Instantiate a ship on startup

This commit is contained in:
2020-04-10 19:24:03 +01:00
parent fd73f03aa5
commit d99a5b9ec3

View File

@@ -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,
}