test avoid bulled game

Dependencies:   C12832_lcd LCD_fonts mbed mbed-rtos

Committer:
th_mbed
Date:
Fri Dec 02 06:16:50 2016 +0000
Revision:
2:50a76ed8bf55
Child:
4:0fe59e58def9
add models; when use models, you must include models.h

Who changed what in which revision?

UserRevisionLine numberNew contents of line
th_mbed 2:50a76ed8bf55 1 #include<point.h>
th_mbed 2:50a76ed8bf55 2 #include<models.h>
th_mbed 2:50a76ed8bf55 3
th_mbed 2:50a76ed8bf55 4 Bullet::Bullet(point p, int v){
th_mbed 2:50a76ed8bf55 5 this->p = p;
th_mbed 2:50a76ed8bf55 6 this->v = v;
th_mbed 2:50a76ed8bf55 7 }
th_mbed 2:50a76ed8bf55 8
th_mbed 2:50a76ed8bf55 9 point Bullet::update(){
th_mbed 2:50a76ed8bf55 10 p.x += v;
th_mbed 2:50a76ed8bf55 11 return p;
th_mbed 2:50a76ed8bf55 12 }