Games, for fun (and stress-testing) (#13464)
This commit is contained in:
1028
Marlin/src/lcd/menu/menu_game.cpp
Normal file
1028
Marlin/src/lcd/menu/menu_game.cpp
Normal file
File diff suppressed because it is too large
Load Diff
@ -138,6 +138,16 @@ void menu_led();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if HAS_GAME_MENU
|
||||
void menu_game();
|
||||
#elif ENABLED(MARLIN_BRICKOUT)
|
||||
void lcd_goto_brickout();
|
||||
#elif ENABLED(MARLIN_INVADERS)
|
||||
void lcd_goto_invaders();
|
||||
#elif ENABLED(MARLIN_SNAKE)
|
||||
void lcd_goto_snake();
|
||||
#endif
|
||||
|
||||
void menu_main() {
|
||||
START_MENU();
|
||||
MENU_BACK(MSG_WATCH);
|
||||
@ -276,6 +286,19 @@ void menu_main() {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if ANY(MARLIN_BRICKOUT, MARLIN_INVADERS, MARLIN_SNAKE)
|
||||
MENU_ITEM(submenu, "Game", (
|
||||
#if HAS_GAME_MENU
|
||||
menu_game
|
||||
#elif ENABLED(MARLIN_BRICKOUT)
|
||||
lcd_goto_brickout
|
||||
#elif ENABLED(MARLIN_INVADERS)
|
||||
lcd_goto_invaders
|
||||
#elif ENABLED(MARLIN_SNAKE)
|
||||
lcd_goto_snake
|
||||
));
|
||||
#endif
|
||||
|
||||
END_MENU();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user