Yunting Zou 201199716

Dependencies:   mbed MotionSensor

Revision:
3:4bd22344278d
Parent:
2:a2f88b2d5da4
diff -r a2f88b2d5da4 -r 4bd22344278d main.cpp
--- a/main.cpp	Thu May 14 16:42:19 2020 +0000
+++ b/main.cpp	Thu May 14 17:18:58 2020 +0000
@@ -18,7 +18,7 @@
 void render();        // Draw the ouline of the area
 void showviper();     //Draw the snake
 void speed();         //select the speed of the snake's movment
-void drawFood();      //draw the target food
+void showtarget();      //draw the target food
 void Dead();          //set the failure condition
 void music();         //set the starting music
 void lose();          //set the losing music
@@ -45,7 +45,7 @@
     lcd.clear();
     render();
     viper();
-    drawFood();
+    showtarget();
     Movement();
     gettarget();
     Dead();
@@ -138,7 +138,7 @@
     
     
     //print the food                           5             
-void drawFood(){                                                              //6
+void showtarget(){                                                              //6
     lcd.drawRect(target.var.x,target.var.y,1,1,FILL_TRANSPARENT);
     }