structure tweaks
This commit is contained in:
@@ -10,16 +10,16 @@ type Engine struct {
|
||||
}
|
||||
|
||||
func (g *Engine) Layout(outsideWidth, outsideHeight int) (int, int) {
|
||||
return g.Konstructor.Settings.Screen.Width, g.Konstructor.Settings.Screen.Height
|
||||
return g.Logic.Settings.Screen.Width, g.Logic.Settings.Screen.Height
|
||||
}
|
||||
|
||||
func (g *Engine) Update(screen *ebiten.Image) error {
|
||||
g.Konstructor.Controller.Watch()
|
||||
g.Logic.Controller.Watch()
|
||||
g.Logic.Update(screen)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (g *Engine) Draw(screen *ebiten.Image) {
|
||||
g.Logic.Draw(screen)
|
||||
g.Konstructor.Controller.Clear()
|
||||
g.Logic.Controller.Clear()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user