feat: start the machine in the menu state
This commit is contained in:
parent
b8397aefdb
commit
cae34a52aa
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
|
@ -38,7 +38,7 @@ func main() {
|
|||
fsm.Register("menu", &handlers.Menu{})
|
||||
fsm.Register("gameover", &handlers.GameOver{})
|
||||
fsm.Register("gameplay", handlers.NewGamePlay())
|
||||
fsm.Start("gameplay")
|
||||
fsm.Start("menu")
|
||||
|
||||
// Enter game loop
|
||||
for !rl.WindowShouldClose() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue