Module main_menu

Module main_menu 

Source

Enumsยง

MainMenuInput
MenuFlow ๐Ÿ”’
The control part of the main menu allows switching to a submenu (Fruits, Speed, Parameters, etc.) Use MainMenuInput to known which keys have been used and GreetingSimpleDisplay to 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 ๐Ÿ”’