Hu Dongyu
/
HuDongyu
publish my project
Me/Me.h
- Committer:
- dongyuhu
- Date:
- 2020-04-27
- Revision:
- 2:7d45920b427f
- Parent:
- 0:9e95a5ef2659
- Child:
- 6:49e77bcc975c
File content as of revision 2:7d45920b427f:
#ifndef ME_H #define ME_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" //head file referenced from ball.h in Pong Example class Me { public: Me(); ~Me(); void init(int x,int y,int height,int width); void draw(N5110 &lcd); void update(Direction d); Vector2D get_pos(); private: int _height; //3 The colltroller is 3 by 3 int _width; //3 int _x; int _y; int _speed; }; #endif