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 William Minix

test

Committer:
wminix3
Date:
Thu Apr 29 05:41:40 2021 +0000
Revision:
33:d17d71103d41
Parent:
23:56f6a12aaebd
Fixed score.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
michaeljson 0:3817adfaeb06 1 #ifndef GLOBAL_H
michaeljson 0:3817adfaeb06 2 #define GLOBAL_H
michaeljson 0:3817adfaeb06 3
michaeljson 0:3817adfaeb06 4 #ifndef ULCD_4DGL_H_
michaeljson 0:3817adfaeb06 5 #define ULCD_4DGL_H_
michaeljson 0:3817adfaeb06 6 #include "uLCD_4DGL.h"
michaeljson 0:3817adfaeb06 7 #endif
michaeljson 0:3817adfaeb06 8
michaeljson 0:3817adfaeb06 9 // === [global object] ===
michaeljson 0:3817adfaeb06 10 extern uLCD_4DGL uLCD;
michaeljson 0:3817adfaeb06 11
michaeljson 0:3817adfaeb06 12 // === [global settings] ===
michaeljson 0:3817adfaeb06 13 #define BACKGROUND_COLOR 0x000000
michaeljson 0:3817adfaeb06 14
wminix3 23:56f6a12aaebd 15 #define GREEN 0x00FF00
wminix3 23:56f6a12aaebd 16 #define BLUE 0x0000FF
wminix3 23:56f6a12aaebd 17 #define PINK 0xFFC0CB
wminix3 23:56f6a12aaebd 18 #define PURPLE 0x800080
wminix3 23:56f6a12aaebd 19 #define YELLOW 0xFFFF00
wminix3 23:56f6a12aaebd 20 #define RED 0xFF0000
wminix3 23:56f6a12aaebd 21
wminix3 23:56f6a12aaebd 22 // Modified from the RPG Game from ECE 2035. Draw more complex player object (with changing color).
wminix3 23:56f6a12aaebd 23 void draw_img(int u, int v, int width, int height, const char* img);
wminix3 23:56f6a12aaebd 24
michaeljson 0:3817adfaeb06 25 #endif //GLOBAL_H