ELEC2645 (2018/19) / Mbed 2 deprecated el17cr

Dependencies:   mbed

Revision:
3:5edefa83f8f0
Parent:
2:7f91a86b4dc0
Child:
4:03d13a53308c
--- a/Falldown/Falldown.h	Fri Apr 05 16:30:47 2019 +0000
+++ b/Falldown/Falldown.h	Tue Apr 16 07:43:34 2019 +0000
@@ -16,32 +16,37 @@
     Falldown();
     ~Falldown();
 
-    void init(int ground_width,int ground_height,int ball_width,int ball_height);
+    void init(int ground_height,int ball_size);
     void read_input(Gamepad &pad);
     void update(Gamepad &pad);
     void draw(N5110 &lcd);
     
 private:
 
-    //void check_wall_collision(Gamepad &pad);
-    //void check_Ground_collisions(Gamepad &pad);
+    void check_wall_collision(Gamepad &pad);
+    void check_Ground_collisions(Gamepad &pad);
     //void check_goal(Gamepad &pad);
     //void print_scores(N5110 &lcd);
     
-    Ground _ground;
+    Ground _ground1;
+    Ground _ground2;
     Ball _ball;
     
     
      
-    int _ground_width;
+    int _ground_width1;
     int _ground_height;
-    int _ball_width;
-    int _ball_height;
+    int _ground_width2;
+    
+    int _ball_size;
     
     
     // x positions of the Grounds
     
-    
+    int _g1x;
+    int _g2x;
+    int _g1y;
+    int _g2y;
     
     
     int _bally;