Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Bullets/Bullets.cpp
- Revision:
- 5:51fd6635141f
- Parent:
- 4:b16b6078a432
- Child:
- 7:0434857199cf
--- a/Bullets/Bullets.cpp Mon May 18 15:42:26 2020 +0000
+++ b/Bullets/Bullets.cpp Wed May 20 21:39:09 2020 +0000
@@ -31,17 +31,18 @@
void Bullets::draw(N5110 &lcd)
{
+
if(_dir == 0){
- lcd.drawLine(_x,_y, _x, 0,2);
+ lcd.drawLine(_x,_y, _x, 0,1);
}
else if (_dir == 1){
- lcd.drawLine(_x,_y, WIDTH, _y,2);
+ lcd.drawLine(_x,_y, WIDTH, _y,1);
}
else if (_dir == 2){
- lcd.drawLine(_x,_y, _x, HEIGHT,2);
+ lcd.drawLine(_x,_y, _x, HEIGHT,1);
}
else if (_dir == 3){
- lcd.drawLine(_x,_y, 0, _y,2);
+ lcd.drawLine(_x,_y, 0, _y,1);
}
}