![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
hgftf
Dependencies: mbed wave_player 4DGL-uLCD-SE MMA8452
graphics.h
- Committer:
- ajorgih3
- Date:
- 2021-04-17
- Revision:
- 10:0b2f37cef9b9
- Parent:
- 9:d09b96b6c39c
File content as of revision 10:0b2f37cef9b9:
// Copyright 2020 Georgia Tech. All rights reserved. // The materials provided by the instructor in this course are for // the use of the students currently enrolled in the course. // Copyrighted course materials may not be further disseminated. // This file must not be made publicly available anywhere. #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); void draw_shield(int u, int v); void draw_life(int u, int v); void draw_snowflake(int u, int v); void draw_sword(int u, int v); void draw_arrow_down(int u, int v); void draw_arrow_up(int u, int v); void draw_arrow_left(int u, int v); void draw_arrow_right(int u, int v); void draw_lightspeed(int u, int v); void draw_blue_wall(int u, int v); void draw_reverse(int u, int v); void draw_red_potion(int u, int v); void draw_blue_potion(int u, int v); void draw_portal(int u, int v); #endif // GRAPHICS_H