implemented basic menu and options structure, most stuff works

This commit is contained in:
2024-05-30 19:45:13 +02:00
parent 7ed0c83fcd
commit 538216ea4d
8 changed files with 228 additions and 19 deletions

11
main.go
View File

@@ -12,6 +12,11 @@ import (
)
func main() {
dau := true
if len(os.Args) > 1 {
dau = false
}
config, err := ParseCommandline()
if err != nil {
log.Fatal(err)
@@ -22,7 +27,11 @@ func main() {
os.Exit(0)
}
game := NewGame(config, Play)
start := Play
if dau {
start = Menu
}
game := NewGame(config, SceneName(start))
if config.ProfileFile != "" {
// enable cpu profiling. Do NOT use q to stop the game but