This commit is contained in:
2023-07-03 15:48:01 +02:00
parent 663f578c7e
commit f5902947f8
9 changed files with 149 additions and 83 deletions

46
main.go
View File

@@ -9,6 +9,12 @@ import (
func main() {
konstructor := konstructor.Konstructor{
KContext: &konstructor.KContext{
Screen: konstructor.KContextScreen{
Type: "menu",
Value: "MainMenu",
},
},
Domain: &domain.Domain{
Context: domain.Context{
Player: domain.Player{
@@ -19,6 +25,46 @@ func main() {
},
},
},
MenuMap: konstructor.MenuMap{
"MainMenu": {
CurrentSelected: 0,
MenuLayout: konstructor.MenuLayout{
DPI: 72,
Size: 24,
},
MenuItems: []konstructor.MenuItem{
{
ID: "new",
Label: "New Game",
},
{
ID: "load",
Label: "Load Game",
},
{
ID: "exit",
Label: "Exit Game",
},
},
},
"GameMenu": {
CurrentSelected: 0,
MenuLayout: konstructor.MenuLayout{
DPI: 72,
Size: 24,
},
MenuItems: []konstructor.MenuItem{
{
ID: "save",
Label: "Save Game",
},
{
ID: "close",
Label: "Close Game",
},
},
},
},
Controller: &konstructor.Controller{
KeyMap: konstructor.KeyMap{
Up: ebiten.KeyUp,