class for bullet in Car_race game
Diff: Bullet.cpp
- Revision:
- 2:b87e78ff82ca
- Parent:
- 1:6bd0cbdf15f7
- Child:
- 3:7015c77e39a2
diff -r 6bd0cbdf15f7 -r b87e78ff82ca Bullet.cpp --- a/Bullet.cpp Fri Mar 31 22:25:35 2017 +0000 +++ b/Bullet.cpp Sat Apr 01 18:48:46 2017 +0000 @@ -19,12 +19,12 @@ void Bullet::draw(N5110 &lcd) { - lcd.drawRect(_bullet_x,_bullet_x,_size,_size,FILL_BLACK); + lcd.drawRect(_bullet_x,_bullet_x,_size,_size,1); } void Bullet::update(Direction d,float mag) { - _bullet_x += 1; + _bullet_x += 0; _bullet_y += 1; } \ No newline at end of file