Games, for fun (and stress-testing) (#13464)
This commit is contained in:
committed by
Scott Lahteine
parent
fbc7b51a24
commit
8b7c3eec83
@ -1277,6 +1277,18 @@
|
||||
#ifndef MSG_END_Z
|
||||
#define MSG_END_Z _UxGT(" End Z")
|
||||
#endif
|
||||
#ifndef MSG_BRICKOUT
|
||||
#define MSG_BRICKOUT _UxGT("Brickout")
|
||||
#endif
|
||||
#ifndef MSG_INVADERS
|
||||
#define MSG_INVADERS _UxGT("Invaders")
|
||||
#endif
|
||||
#ifndef MSG_SNAKE
|
||||
#define MSG_SNAKE _UxGT("Sn4k3")
|
||||
#endif
|
||||
#ifndef MSG_MAZE
|
||||
#define MSG_MAZE _UxGT("Maze")
|
||||
#endif
|
||||
|
||||
//
|
||||
// Filament Change screens show up to 3 lines on a 4-line display
|
||||
|
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,20 @@ 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
|
||||
));
|
||||
#endif
|
||||
|
||||
END_MENU();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user