Updated Space Invaders on the mbed. Improved upon Michael Son's "Mbed Space Invaders" at https://os.mbed.com/users/michaeljson/notebook/mbed-space-invaders/.
Dependencies: mbed wave_player mbed-rtos 4DGL-uLCD-SE SparkfunAnalogJoystick SDFileSystem LSM9DS1_Library_cal_updated
Fork of Two-PlayerSpaceInvaders by
test
globals.h
- Committer:
- wminix3
- Date:
- 2021-04-29
- Revision:
- 33:d17d71103d41
- Parent:
- 23:56f6a12aaebd
File content as of revision 33:d17d71103d41:
#ifndef GLOBAL_H #define GLOBAL_H #ifndef ULCD_4DGL_H_ #define ULCD_4DGL_H_ #include "uLCD_4DGL.h" #endif // === [global object] === extern uLCD_4DGL uLCD; // === [global settings] === #define BACKGROUND_COLOR 0x000000 #define GREEN 0x00FF00 #define BLUE 0x0000FF #define PINK 0xFFC0CB #define PURPLE 0x800080 #define YELLOW 0xFFFF00 #define RED 0xFF0000 // Modified from the RPG Game from ECE 2035. Draw more complex player object (with changing color). void draw_img(int u, int v, int width, int height, const char* img); #endif //GLOBAL_H