Li Saiwen 201089052

Dependencies:   mbed Gamepad N5110

Revision:
7:cafa0b96e8d3
Parent:
3:7b28047013d2
diff -r 1ad8c738b9b7 -r cafa0b96e8d3 Food/Food.cpp
--- a/Food/Food.cpp	Thu May 02 08:17:22 2019 +0000
+++ b/Food/Food.cpp	Sun May 05 12:10:48 2019 +0000
@@ -11,23 +11,23 @@
     
 }
 void Food::init(){
-        food.x=48;//set first food
+        food.x=50;
         food.y=25;
-}//end of init
+}
     
 void Food::drawfood(N5110 &lcd){
     
-        lcd.setPixel(food.x,food.y);//draw food
+        lcd.setPixel(food.x,food.y);
             
-}//end of draw
+}
     
 void Food::createfood(){
         
-        srand(time(NULL));//randomly respawn food
+        srand(time(NULL));
         food.x=(rand()%81)+2;
         food.y=(rand()%27)+10;
     
-}//end of respawn
+}
 
 Foodpos Food::returnPos(){