constructor stucture fixes

This commit is contained in:
2023-06-30 17:44:19 +02:00
parent dec8ad2fe0
commit 0ed8cfb839
6 changed files with 63 additions and 53 deletions

View File

@@ -20,7 +20,7 @@ func main() {
}
constructor := constructor.Constructor{
Domain: domain,
Keyboard: constructor.Keyboard{
Controller: constructor.Controller{
KeyMap: constructor.KeyMap{
Up: ebiten.KeyUp,
Down: ebiten.KeyDown,
@@ -32,6 +32,13 @@ func main() {
Action3: ebiten.KeyEscape,
},
},
GameSettings: constructor.GameSettings{
Name: "Game",
ScreenSettings: constructor.ScreenSettings{
Width: 640,
Height: 480,
},
},
}
constructor.Init()
}