A game for Lab 4 of ECE 4180
Dependencies: 4DGL-uLCD-SE LSM9DS1_Library SDFileSystem mbed-rtos mbed wave_player
Invader.h
- Committer:
- Dogstopper
- Date:
- 2016-03-10
- Revision:
- 0:6a49493943be
- Child:
- 3:27889fffc2f7
File content as of revision 0:6a49493943be:
#ifndef _Invader_H_ #define _Invader_H_ #include "rtos.h" #include "uLCD_4DGL.h" class Invader { public: // Constructors Invader(uLCD_4DGL* screen, int startX, int startY, int spdX, int spdY); // Game function void update(); void draw(); // Intersection bool intersects(int otherX, int otherY, int otherWidth, int otherHeight); // Getters //int getX(); // int getY(); // int getWidth(); // int getHeight(); private: Mutex screen_mutex; uLCD_4DGL* screen; int x; int y; int lastX; int lastY; int spdX; int spdY; }; #endif