Skip to content

Commit

Permalink
Games, for fun (and stress-testing) (MarlinFirmware#13464)
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead authored and Bob-the-Kuhn committed Apr 16, 2019
1 parent 9992c42 commit f55ce5e
Show file tree
Hide file tree
Showing 75 changed files with 380 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Marlin/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
10 changes: 10 additions & 0 deletions Marlin/src/lcd/menu/menu_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,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);
Expand Down
5 changes: 5 additions & 0 deletions config/default/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/3DFabXYZ/Migbot/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/AlephObjects/TAZ4/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/AliExpress/UM2pExt/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/Anet/A2/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/Anet/A2plus/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/Anet/A6/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/Anet/A8/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/AnyCubic/i3/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/ArmEd/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/BIBO/TouchX/cyclops/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/BIBO/TouchX/default/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/BQ/Hephestos/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/BQ/Hephestos_2/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/BQ/WITBOX/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/Cartesio/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/Creality/CR-10/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/Creality/CR-10S/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/Creality/CR-10_5S/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/Creality/CR-10mini/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/Creality/CR-8/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/Creality/Ender-2/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/Creality/Ender-3/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/Creality/Ender-4/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/Einstart-S/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/Felix/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/FlashForge/CreatorPro/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -982,6 +982,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/FolgerTech/i3-2020/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/Formbot/Raptor/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
5 changes: 5 additions & 0 deletions config/examples/Formbot/T_Rex_2+/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,11 @@
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

// Frivolous Game Options
//#define MARLIN_BRICKOUT
//#define MARLIN_INVADERS
//#define MARLIN_SNAKE

#endif // HAS_GRAPHICAL_LCD

// @section safety
Expand Down
Loading

0 comments on commit f55ce5e

Please sign in to comment.