Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed wave_player 4DGL-uLCD-SE MMA8452
graphics.h
00001 // Copyright 2020 Georgia Tech. All rights reserved. 00002 // The materials provided by the instructor in this course are for 00003 // the use of the students currently enrolled in the course. 00004 // Copyrighted course materials may not be further disseminated. 00005 // This file must not be made publicly available anywhere. 00006 00007 #ifndef GRAPHICS_H 00008 #define GRAPHICS_H 00009 00010 /** 00011 * Takes a string image and draws it to the screen. The string is 121 characters 00012 * long, and represents an 11x11 tile in row-major ordering (across, then down, 00013 * like a regular multi-dimensional array). The available colors are: 00014 * R = Red 00015 * Y = Yellow 00016 * G = Green 00017 * D = Brown ("dirt") 00018 * 5 = Light grey (50%) 00019 * 3 = Dark grey (30%) 00020 * Any other character is black 00021 * More colors can be easily added by following the pattern already given. 00022 */ 00023 void draw_img(int u, int v, const char* img); 00024 00025 /** 00026 * DrawFunc functions. 00027 * These can be used as the MapItem draw functions. 00028 */ 00029 00030 void draw_nothing(int u, int v); 00031 void draw_plant(int u, int v); 00032 void draw_wall(int u, int v); 00033 void draw_goodie(int u, int v); 00034 void draw_snake_body(int u, int v); 00035 void draw_snake_head(int u, int v); 00036 void draw_snake_tail(int u, int v); 00037 //new buffs/debuffs/extra stuff below 00038 void draw_poison(int u, int v); 00039 void draw_speedup(int u, int v); 00040 void draw_slowdown(int u, int v); 00041 void draw_decrease_length(int u, int v); 00042 void draw_random(int u, int v); 00043 void draw_moving(int u, int v); 00044 void draw_invinc(int u, int v); 00045 void draw_welcome(int d, int f); 00046 void draw_inclength(int u, int v); 00047 00048 #endif // GRAPHICS_H
Generated on Mon Aug 1 2022 15:08:58 by
