class for obstacles in Car_race game
Diff: Obstacles.cpp
- Revision:
- 4:b1648ba28d3f
- Parent:
- 3:124cf90ee993
- Child:
- 5:b000cefeb3c5
diff -r 124cf90ee993 -r b1648ba28d3f Obstacles.cpp --- a/Obstacles.cpp Sun Mar 19 22:52:41 2017 +0000 +++ b/Obstacles.cpp Thu Mar 23 23:59:46 2017 +0000 @@ -55,7 +55,7 @@ for (int j=1; j<47; j+=1) { if ((pixelstate[i-1][j-1]) ) { lcd.setPixel(i,j+1); - } + } // CAN INCREASE THE SPEED BY ADDING 1 FOR Y VALUES if ((pixelstate[i-1][j-2]==0) ) { lcd.clearPixel(i,j); }