test avoid bulled game
Dependencies: C12832_lcd LCD_fonts mbed mbed-rtos
Diff: Bullet.cpp
- Revision:
- 2:50a76ed8bf55
- Child:
- 4:0fe59e58def9
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Bullet.cpp Fri Dec 02 06:16:50 2016 +0000 @@ -0,0 +1,12 @@ +#include<point.h> +#include<models.h> + +Bullet::Bullet(point p, int v){ + this->p = p; + this->v = v; +} + +point Bullet::update(){ + p.x += v; + return p; +} \ No newline at end of file