Options button in pause menu

This commit is contained in:
2023-04-06 10:39:43 -06:00
parent 15a22cb8f1
commit 956f1c4a4e
2 changed files with 8 additions and 1 deletions

7
README.md Normal file
View File

@@ -0,0 +1,7 @@
# hollywoo-flixel
## Gotchas
### MenuState
Your project must define and import a MenuState type! This must extend FlxState and provide static function `optionsMenu(onBack:Continuation):Void`

View File

@@ -57,7 +57,7 @@
->choice
(case choice
("Resume" (resume))
("Options" null) // TODO
("Options" (MenuState.optionsMenu ->(showPauseMenu resume)))
("Main Menu" (FlxG.switchState (new MenuState)))
("Quit to Desktop" (Sys.exit 0))
(never otherwise))))