structure tweaks

This commit is contained in:
2023-07-02 19:58:41 +02:00
parent 293c8f407e
commit d55c080243
4 changed files with 12 additions and 21 deletions

View File

@@ -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()
}