Instantiate a ship on startup
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
Reference in New Issue
Block a user