feat: register menu and gameover states.
This commit is contained in:
parent
6d15a806f6
commit
b8397aefdb
1 changed files with 2 additions and 0 deletions
2
main.go
2
main.go
|
|
@ -35,6 +35,8 @@ func main() {
|
|||
|
||||
// Setup state machine.
|
||||
fsm := machine.New()
|
||||
fsm.Register("menu", &handlers.Menu{})
|
||||
fsm.Register("gameover", &handlers.GameOver{})
|
||||
fsm.Register("gameplay", handlers.NewGamePlay())
|
||||
fsm.Start("gameplay")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue