This is the description
Dependencies: mbed Menu Joystick
Diff: Bullet/Bullet.h
- Revision:
- 0:59cbc5800eb6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Bullet/Bullet.h Mon Apr 27 14:04:30 2020 +0000 @@ -0,0 +1,23 @@ +#ifndef BULLET_H +#define BULLET_H +#include "mbed.h" +#include "N5110.h" +#include "Joystick.h" +#include "Bitmap.h" + +class Bullet{ +public: + Bullet(); + ~Bullet(); + void init(int x,int y,int sizeX,int sizeY); + void draw(N5110 &lcd); + void update(); + Vector2D getPos(); +private: + int _x; + int _y; + int _sizeX; + int _sizeY; + int _speed; +}; +#endif