menu poc
This commit is contained in:
46
main.go
46
main.go
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user