class for obstacles in Car_race game

Revision:
6:44243b2bc27c
Parent:
5:b000cefeb3c5
Child:
7:55d1306f5df5
diff -r b000cefeb3c5 -r 44243b2bc27c Obstacles.cpp
--- a/Obstacles.cpp	Fri Apr 07 10:56:09 2017 +0000
+++ b/Obstacles.cpp	Tue Apr 11 22:37:40 2017 +0000
@@ -57,7 +57,7 @@
                     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);
+                    lcd.setPixel(i,j,false);
                 }  
            }
      }