f

Dependencies:   mbed 4DGL-uLCD-SE MMA8452

Committer:
lballard9
Date:
Thu Mar 10 05:18:13 2022 +0000
Revision:
0:8e3b9bb1084a
Child:
5:077b66dfe296
shell rev b;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
lballard9 0:8e3b9bb1084a 1 #ifndef GRAPHICS_H
lballard9 0:8e3b9bb1084a 2 #define GRAPHICS_H
lballard9 0:8e3b9bb1084a 3 #include "globals.h"
lballard9 0:8e3b9bb1084a 4
lballard9 0:8e3b9bb1084a 5
lballard9 0:8e3b9bb1084a 6 // The bottom of the screen => y=127
lballard9 0:8e3b9bb1084a 7 // Gut the landscape grow up from the bottom of the screen. It is awkward.
lballard9 0:8e3b9bb1084a 8 // Thus, we use a macro to reverse the coordinate for convenience.
lballard9 0:8e3b9bb1084a 9 #define REVERSE_Y(x) (SIZE_Y-(x))
lballard9 0:8e3b9bb1084a 10
lballard9 0:8e3b9bb1084a 11 /**
lballard9 0:8e3b9bb1084a 12 * Draws a sprite
lballard9 0:8e3b9bb1084a 13 */
lballard9 0:8e3b9bb1084a 14 void draw_sprite();
lballard9 0:8e3b9bb1084a 15 void draw_lower_status();
lballard9 0:8e3b9bb1084a 16
lballard9 0:8e3b9bb1084a 17
lballard9 0:8e3b9bb1084a 18 #endif // GRAPHICS_H