ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_ll17lrc_v2

Dependencies:   mbed

Revision:
7:35465b3bf586
Parent:
5:5c132202b642
Child:
8:10eb578dd754
--- a/Ball/Ball.h	Sun May 17 19:12:52 2020 +0000
+++ b/Ball/Ball.h	Mon May 18 14:28:05 2020 +0000
@@ -16,7 +16,7 @@
 public:
     Ball();
     ~Ball();
-    void init();
+    void init(int x,int y);
     void draw(N5110 &lcd);
     void update(Direction d);
     void level_finish();
@@ -26,11 +26,9 @@
     
 private:
 
+    int ball;
     int ball_x_pos;
     int ball_y_pos;
-    int ball;
-    int x_pos;
-    int y_pos;
 
 };
 #endif
\ No newline at end of file