Instantiate a ship on startup
This commit is contained in:
@@ -35,13 +35,14 @@ type Ordoor struct {
|
|||||||
music *audio.Player
|
music *audio.Player
|
||||||
win *ui.Window
|
win *ui.Window
|
||||||
|
|
||||||
ship *Ship
|
|
||||||
|
|
||||||
state gameState
|
state gameState
|
||||||
nextState gameState
|
nextState gameState
|
||||||
|
|
||||||
// Relevant to interface state
|
// Relevant to interface state
|
||||||
flow *flow.Flow
|
flow *flow.Flow
|
||||||
|
|
||||||
|
// Relevant to campaign state
|
||||||
|
ship *Ship
|
||||||
}
|
}
|
||||||
|
|
||||||
func Run(configFile string, overrideX, overrideY int) error {
|
func Run(configFile string, overrideX, overrideY int) error {
|
||||||
@@ -74,6 +75,7 @@ func Run(configFile string, overrideX, overrideY int) error {
|
|||||||
ordoor := &Ordoor{
|
ordoor := &Ordoor{
|
||||||
assets: assets,
|
assets: assets,
|
||||||
config: cfg,
|
config: cfg,
|
||||||
|
ship: &Ship{},
|
||||||
state: StateInterface,
|
state: StateInterface,
|
||||||
nextState: StateInterface,
|
nextState: StateInterface,
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user