Simple vertical scrolling space shooter game using navigation switch (joystick), uLCD-144-G2, and a pushbutton switch.
Dependencies: 4DGL-uLCD-SE PinDetect mbed
Display/Sprite.cpp@0:5c666e5cd22d, 2016-03-17 (annotated)
- 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?
User | Revision | Line number | New contents of line |
---|---|---|---|
jaspinall3 | 0:5c666e5cd22d | 1 | #include "Sprite.h" |
jaspinall3 | 0:5c666e5cd22d | 2 | |
jaspinall3 | 0:5c666e5cd22d | 3 | Sprite::Sprite() { |
jaspinall3 | 0:5c666e5cd22d | 4 | |
jaspinall3 | 0:5c666e5cd22d | 5 | } |
jaspinall3 | 0:5c666e5cd22d | 6 | |
jaspinall3 | 0:5c666e5cd22d | 7 | void Sprite::initSprite(int x, int y, uLCD_4DGL *uLCD) { |
jaspinall3 | 0:5c666e5cd22d | 8 | _x = x; |
jaspinall3 | 0:5c666e5cd22d | 9 | _y = y; |
jaspinall3 | 0:5c666e5cd22d | 10 | _uLCDptr = uLCD; |
jaspinall3 | 0:5c666e5cd22d | 11 | } |