diff --git a/README.md b/README.md new file mode 100644 index 0000000..35e138a --- /dev/null +++ b/README.md @@ -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` \ No newline at end of file diff --git a/src/hollywoo_flixel/FlxDirector.kiss b/src/hollywoo_flixel/FlxDirector.kiss index 07d76e0..58931ff 100644 --- a/src/hollywoo_flixel/FlxDirector.kiss +++ b/src/hollywoo_flixel/FlxDirector.kiss @@ -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))))