Simple fish eat program

Dependencies:   mbed mbed-rtos N5110 ShiftReg Tone

Revision:
2:532b0225519f
Parent:
1:7dfa61225fcf
Child:
10:e221bd1ce3ec
diff -r 7dfa61225fcf -r 532b0225519f classes/Graphics.cpp
--- a/classes/Graphics.cpp	Fri Mar 19 17:28:12 2021 +0000
+++ b/classes/Graphics.cpp	Mon Mar 22 15:54:04 2021 +0000
@@ -171,15 +171,16 @@
     
     lcd.drawRect(0,0,84,48,FILL_TRANSPARENT); //draws screen border
         
-                     //X Y  x  y
-    lcd.drawSprite(3,2,20,12,(int *)F);
-    lcd.drawSprite(19,2,20,4,(int *)I);
-    lcd.drawSprite(27,2,20,12,(int *)S);
-    lcd.drawSprite(43,2,20,12,(int *)H);
+                 //pos  size
+                 //X Y  row col
+    lcd.drawSprite(16,2,20,12,(int *)F); 
+    lcd.drawSprite(32,2,20,4,(int *)I); //xpos = prevoius x pos + col + 4
+    lcd.drawSprite(40,2,20,12,(int *)S);
+    lcd.drawSprite(56,2,20,12,(int *)H);
         
-    lcd.drawSprite(3,26,20,12,(int *)E);
-    lcd.drawSprite(19,26,20,12,(int *)A);
-    lcd.drawSprite(35,26,20,12,(int *)T);   
+    lcd.drawSprite(19,26,20,12,(int *)E);
+    lcd.drawSprite(35,26,20,12,(int *)A);
+    lcd.drawSprite(51,26,20,12,(int *)T);   
 }
 
 void Graphics::confirmationScreen(N5110 &lcd){