rename to Constructor to Konstructor

This commit is contained in:
2023-06-30 17:48:34 +02:00
parent 0ed8cfb839
commit c07074aeb9
5 changed files with 20 additions and 20 deletions

26
konstructor/engine.go Executable file
View File

@@ -0,0 +1,26 @@
package konstructor
import (
"image/color"
"github.com/hajimehoshi/ebiten"
)
type GameEngine struct {
Konstructor Konstructor
}
func (g *GameEngine) Update(screen *ebiten.Image) error {
g.Konstructor.Controller.Watch()
return nil
}
func (g *GameEngine) Draw(screen *ebiten.Image) {
if g.Konstructor.Controller.UpPressed() {
screen.Fill(color.White)
}
}
func (g *GameEngine) Layout(outsideWidth, outsideHeight int) (int, int) {
return g.Konstructor.GameSettings.ScreenSettings.Width, g.Konstructor.GameSettings.ScreenSettings.Height
}