Library containing the Game Engine
GameEngine.h
- Committer:
- ll14c4p
- Date:
- 2017-04-29
- Revision:
- 3:2f8f003ce4fd
- Parent:
- 1:13a97de95e46
- Child:
- 5:6224122fc07c
File content as of revision 3:2f8f003ce4fd:
#ifndef GAMEENGINE_H #define GAMEENGINE_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "Player.h" #include "Projectile.h" class GameEngine { public: GameEngine(); ~GameEngine(); void init( ); void read_input(Gamepad &pad); void update(Gamepad &pad); void draw(N5110 &lcd); void get_pos(); private: Player _p; Projectile _proj; int _speed; Direction _d; float _mag; }; #endif