ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el19tb

Dependencies:   mbed

Revision:
40:8cc82e3fce06
Parent:
39:8b09540724b3
Child:
43:2cd1cfe07770
--- a/Frog/Frog.cpp	Mon May 18 02:05:36 2020 +0000
+++ b/Frog/Frog.cpp	Mon May 18 02:36:44 2020 +0000
@@ -1,6 +1,6 @@
 #include "Frog.h"
  
-//every frog object will accept x, y, and width size of grid
+//every chicken object will accept x, y, and width (square)
 Frog::Frog(int x, int y, int width){
     this->x = x;
     this->y = y;
@@ -13,11 +13,11 @@
 }
 
 // reset back to start position
-Frog::reset()
+void Frog::reset()
 {
-    x = (84/2)-6/2;
+    x = (84/2)-4/2;
     y = 48-4;
-    width = 6;
+    width = 4;
 
     left_side = x;
     right_side = width + x;
@@ -25,3 +25,4 @@
     down = width + y;
 }
 
+