P2-2 Harris Barton

Dependencies:   mbed wave_player 4DGL-uLCD-SE MMA8452

Revision:
1:10330bce85cb
Child:
2:4947d6a82971
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics.h	Fri Oct 23 16:18:39 2020 -0400
@@ -0,0 +1,33 @@
+#ifndef GRAPHICS_H
+#define GRAPHICS_H
+
+/**
+ * Takes a string image and draws it to the screen. The string is 121 characters
+ * long, and represents an 11x11 tile in row-major ordering (across, then down,
+ * like a regular multi-dimensional array). The available colors are:
+ *      R = Red
+ *      Y = Yellow
+ *      G = Green
+ *      D = Brown ("dirt")
+ *      5 = Light grey (50%)
+ *      3 = Dark grey (30%)
+ *      Any other character is black
+ * More colors can be easily added by following the pattern already given.
+ */
+void draw_img(int u, int v, const char* img);
+
+/**
+ * DrawFunc functions. 
+ * These can be used as the MapItem draw functions.
+ */
+ 
+void draw_nothing(int u, int v);
+void draw_plant(int u, int v);
+void draw_wall(int u, int v);
+void draw_goodie(int u, int v);
+void draw_snake_body(int u, int v);
+void draw_snake_head(int u, int v);
+void draw_snake_tail(int u, int v);
+
+
+#endif // GRAPHICS_H
\ No newline at end of file