![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Adventure game written for ECE2035 at the Georgia Institute of Technology
Dependencies: mbed wave_player 4DGL-uLCD-SE MMA8452
Diff: graphics.h
- Revision:
- 2:0876296d9473
- Parent:
- 0:35660d7952f7
- Child:
- 3:289762133fd6
--- a/graphics.h Wed Apr 04 21:11:07 2018 +0000 +++ b/graphics.h Tue Apr 17 17:17:20 2018 +0000 @@ -1,11 +1,19 @@ #ifndef GRAPHICS_H #define GRAPHICS_H +#define PINK1 0xF442EB //P +#define LIGHTPINK 0xF2B0EE //V +#define YELLOW 0xFFFF00 /** * Draws the player. This depends on the player state, so it is not a DrawFunc. */ void draw_player(int u, int v, int key); +void draw_npc(int u, int v); +void draw_rock(int u, int v); +void draw_door(int u, int v); +void draw_goal(int u, int v); +void draw_game_over(); /** * Takes a string image and draws it to the screen. The string is 121 characters @@ -29,16 +37,17 @@ void draw_nothing(int u, int v); void draw_wall(int u, int v); void draw_plant(int u, int v); +void draw_spike(int u, int v); /** * Draw the upper status bar. */ -void draw_upper_status(); +void draw_upper_status(int health); /** * Draw the lower status bar. */ -void draw_lower_status(); +void draw_lower_status(int x, int y); /** * Draw the border for the map.