Enumsยง
- Main
Menu Input - Menu
Flow ๐ - The control part of the main menu
allows switching to a submenu (Fruits, Speed, Parameters, etc.)
Use
MainMenuInputto known which keys have been used andGreetingSimpleDisplayto display an easy menu, without input control (all except run and parameters) Return true if the player wants to play, false otherwise
Constantsยง
- ENTER_
KEYS - FRUITS_
KEYS ๐ - HELP_
KEYS ๐ - HIGH_
SCORE_ ๐KEYS - NEXT_
KEYS - PARAMETERS_
KEYS ๐ - PREVIOUS_
KEYS - SWITCH_
MENUS_ ๐OPTION - VELOCITY_
KEYS ๐
Functionsยง
- controls_
main_ switch_ menu - enter_
menu_ ๐screen - flush_
input_ ๐buffer - main_
menu_ event - Check input on the greeting screen Return Some(GreetingOption) if input is valid, with the chosen Greeting Option, None otherwise
- run_
submenu_ ๐and_ reset