ELEC2645 (2018/19) / Mbed 2 deprecated el17m2h_public

Dependencies:   mbed

Revision:
2:360a6c301a4e
Parent:
1:0001cb3eb053
Child:
3:116913e97fd7
--- a/Floors/Floors.cpp	Tue Apr 09 20:15:33 2019 +0000
+++ b/Floors/Floors.cpp	Wed Apr 10 17:34:02 2019 +0000
@@ -4,13 +4,13 @@
 }
 Floors::~Floors(){
 }
-
-void Floors::init(int height, int width){
+// screen WIDTH =84 and HEIGHT = 48
+    
+void Floors::init(int _x, int _y, int height, int width){
     _height = height;
     _width = width;
-    
-    _x = WIDTH/2 ; // initial floors position
-    _y = HEIGHT/2;
+
+
     
     _velocity.x = 0;
     _velocity.y = 1;