Accompanying library for Objects. Library contains five shapes that are selected at random by the Objects library and drawn on to the objects on a Nokia N5110 LCD display.

Dependents:   Game_Controller_Project

Revision:
1:d9e03c7482ad
Parent:
0:1976fca8d66a
Child:
2:15120c2cf507
--- a/Fruit.cpp	Mon Mar 27 18:32:24 2017 +0000
+++ b/Fruit.cpp	Tue Apr 04 16:33:38 2017 +0000
@@ -80,4 +80,15 @@
     lcd.drawLine(x+1,y+5,x+4,y+5,0);
     lcd.drawLine(x+5,y+2,x+5,y+4,0);
 }
-    
\ No newline at end of file
+
+void Fruit::draw_antifruit(int x, int y, N5110 &lcd)
+{
+    lcd.drawLine(x,y,x+5,y+5,1);
+    lcd.drawLine(x,y+5,x+5,y,1);
+}
+
+void Fruit::undraw_antifruit(int x, int y, N5110 &lcd)
+{
+    lcd.drawLine(x,y,x+5,y+5,0);
+    lcd.drawLine(x,y+5,x+5,y,0);
+}
\ No newline at end of file