Jeffery Hurley
/
Asteroids
Simple starter skeleton for asteroids video game.
Diff: LCDGraphics/BuzzyGraphics.h
- Revision:
- 2:30020ddfccf6
- Parent:
- 1:a6872783beca
- Child:
- 3:98aa3db6a48f
diff -r a6872783beca -r 30020ddfccf6 LCDGraphics/BuzzyGraphics.h --- a/LCDGraphics/BuzzyGraphics.h Sat Feb 23 21:38:45 2019 +0000 +++ b/LCDGraphics/BuzzyGraphics.h Sat Mar 02 16:11:43 2019 +0000 @@ -194,10 +194,18 @@ #define MAZE_NUM_ROW 40 #define MAZE_NUM_COL 42 #define MAZE_SCALE 3 + +#define GAME_PAUSED 0 +#define GAME_RUNNING 1 +#define GAME_OVER 2 +#define NUM_GHOSTS 4 +#define NUM_ALL_SPRITES (NUM_GHOSTS + 1) + /////////////////////////////// /////////////////////////////// -//Maze -const char Maze[40][42] = +// Maze + +const char gCnstMaze[MAZE_NUM_ROW][MAZE_NUM_COL] = { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1, @@ -214,9 +222,9 @@ 1,0,2,0,2,0,2,0,2,0,2,0,1,1,1,1,1,0,2,0,1,0,2,0,1,1,1,1,1,1,0,2,0,2,0,2,0,2,0,2,0,1, 1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,1,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1, 1,1,1,1,1,1,1,1,1,0,2,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,2,0,1,1,1,1,1,1,1,1,1, -1,1,1,1,1,1,1,1,1,0,0,0,1,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,1,1,0,0,0,1,1,1,1,1,1,1,1,1, +1,1,1,1,1,1,1,1,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