Games, for fun (and stress-testing) (#13464)

This commit is contained in:
Scott Lahteine
2019-04-01 15:43:48 -05:00
committed by Scott Lahteine
parent fbc7b51a24
commit 8b7c3eec83
78 changed files with 1435 additions and 0 deletions

View File

@ -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

File diff suppressed because it is too large Load Diff

View File

@ -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();
}