Simple vertical scrolling space shooter game using navigation switch (joystick), uLCD-144-G2, and a pushbutton switch.

Dependencies:   4DGL-uLCD-SE PinDetect mbed

Committer:
jaspinall3
Date:
Thu Mar 17 20:47:11 2016 +0000
Revision:
0:5c666e5cd22d
March 17, 2016 Vertical Scrolling Space Shooter

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jaspinall3 0:5c666e5cd22d 1 #ifndef STAR_H
jaspinall3 0:5c666e5cd22d 2 #define STAR_H
jaspinall3 0:5c666e5cd22d 3
jaspinall3 0:5c666e5cd22d 4
jaspinall3 0:5c666e5cd22d 5 #include "uLCD_4DGL.h"
jaspinall3 0:5c666e5cd22d 6
jaspinall3 0:5c666e5cd22d 7 class Star {
jaspinall3 0:5c666e5cd22d 8 public:
jaspinall3 0:5c666e5cd22d 9 Star( uLCD_4DGL *uLCD);
jaspinall3 0:5c666e5cd22d 10 void update();
jaspinall3 0:5c666e5cd22d 11 int offScreen();
jaspinall3 0:5c666e5cd22d 12
jaspinall3 0:5c666e5cd22d 13 private:
jaspinall3 0:5c666e5cd22d 14 int _x;
jaspinall3 0:5c666e5cd22d 15 int _y;
jaspinall3 0:5c666e5cd22d 16 int _dy;
jaspinall3 0:5c666e5cd22d 17 uLCD_4DGL *_uLCDptr;
jaspinall3 0:5c666e5cd22d 18
jaspinall3 0:5c666e5cd22d 19 };
jaspinall3 0:5c666e5cd22d 20
jaspinall3 0:5c666e5cd22d 21 #endif