Simple starter skeleton for asteroids video game.

Dependencies:   PinDetect

Revision:
3:98aa3db6a48f
Parent:
2:30020ddfccf6
--- a/LCDGraphics/BuzzyGraphics.h	Sat Mar 02 16:11:43 2019 +0000
+++ b/LCDGraphics/BuzzyGraphics.h	Thu Apr 01 19:10:58 2021 +0000
@@ -17,13 +17,21 @@
 #define DPECH 0xC96830
 #define RPECH 0xF25427
 
-#define BLUE_SQUARE 1
-#define COIN_SQUARE 2
-#define PWRUP_SQUARE 3
-#define PACMAN_ICON 5
 ///////////////////////////////
 ///////////////////////////////
 // Tiles
+const int TrapLine[9][9] =
+{
+   {BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK},
+   {BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK},
+   {BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK},
+   {BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK},
+   {_PINK, _PINK, _PINK, _PINK, _PINK, _PINK, _PINK, _PINK, _PINK},
+   {_PINK, _PINK, _PINK, _PINK, _PINK, _PINK, _PINK, _PINK, _PINK},
+   {BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK},
+   {BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK},
+   {BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK}
+};
 const int FruitIcon[9][9] =
 {
    {BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK},
@@ -48,7 +56,7 @@
    {BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK},
    {BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK}
 };
-const int CoinIcon[3][3] =
+const int HoneyDropIcon[3][3] =
 {
    {BLACK, YELLW, BLACK},
    {YELLW, YELLW, YELLW},
@@ -57,7 +65,7 @@
 ///////////////////////////////
 ///////////////////////////////
 // PacMan
-const int PacManIcon[2][9][9] =
+const int BuzzyIcon[2][9][9] =
 {
 {
    {BLACK, BLACK, BLACK, YELLW, YELLW, YELLW, BLACK, BLACK, BLACK},
@@ -201,10 +209,20 @@
 #define NUM_GHOSTS 4
 #define NUM_ALL_SPRITES (NUM_GHOSTS + 1)
 
+
+#define BLUE_SQUARE 1
+#define HONEYDROP_SQUARE 2
+#define PWRUP_SQUARE 3
+#define GHOST_ICON 4
+#define BUZZY_ICON 5
+#define TRAP_LINE 6
+
 ///////////////////////////////
 ///////////////////////////////
 // Maze
-
+// The maze is a scaled down version of the LCD display
+// Each element in the maze is really a 3x3 segment of the LCD
+// This must be taken into account when drawing the 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,
@@ -226,9 +244,9 @@
 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,1,1,1,6,6,6,1,1,1,0,2,0,1,1,0,0,0,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,1,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,2,0,2,0,2,0,2,0,2,0,2,0,2,0,1,0,4,4,4,4,4,0,1,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,
-0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,4,4,4,4,4,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-1,1,1,1,1,1,1,1,1,0,0,0,1,0,2,0,1,0,4,4,4,4,4,0,1,0,0,0,1,1,0,2,0,1,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