hongyun AHN
/
project_Maze
200943373hongyun
Diff: player/player.h
- Revision:
- 0:e70cf0da7c72
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/player/player.h Thu May 04 11:46:46 2017 +0000 @@ -0,0 +1,27 @@ +#ifndef PLAYER_H +#define PLAYER_H + +#include "mbed.h" +#include "N5110.h" +#include "background.h" + +class player +{ +public: + + player(); + ~player(); + void init(int x,int height,int width); + void read_input(background pad); + void update(Direction d,float mag); + void draw(N5110 &lcd); + Vector2D get_pos(); + +private: + + + int _x; + int _y; + +}; +#endif \ No newline at end of file