Library containing the Game Engine
GameEngine.h
- Committer:
- ll14c4p
- Date:
- 2017-05-03
- Revision:
- 8:bd718162a87c
- Parent:
- 7:cf6304ef44fd
- Child:
- 10:df8ea4e747e2
File content as of revision 8:bd718162a87c:
#ifndef GAMEENGINE_H #define GAMEENGINE_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "Player.h" #include "Projectile.h" #include "Target.h" class GameEngine { public: GameEngine(); ~GameEngine(); void init( ); void read_input(Gamepad &pad); void update(Gamepad &pad); void draw(N5110 &lcd, Gamepad &pad); void get_pos(); int playerx; int playery; private: Player _p; Projectile _proj; Target _t; Target _tt; Target _ttt; int _speed; Direction _d; float _mag; void CheckProjTargetCollision(Gamepad &pad); void CheckPlayerTargetCollision(Gamepad &pad); }; #endif