ELEC2645 (2018/19) / Mbed 2 deprecated el17lw

Dependencies:   mbed

Revision:
10:8bf3713d9e9c
Parent:
9:fff2009f826e
Child:
14:9861fe85c803
--- a/Map/Map.cpp	Sun Mar 24 19:22:50 2019 +0000
+++ b/Map/Map.cpp	Tue Mar 26 11:03:05 2019 +0000
@@ -4,16 +4,16 @@
 
 Map::~Map() {}
 
-void Map::init() {
+void Map::init(int y) {
   _line_1.x_start = 0;
   _line_1.x_end = 15;
-  _line_1.y = 40;
+  _line_1.y = y;
   _line_2.x_start = 25;
   _line_2.x_end = 50;
-  _line_2.y = 40;
+  _line_2.y = y;
   _line_3.x_start = 60;
   _line_3.x_end = 80;
-  _line_3.y = 40;
+  _line_3.y = y;
 }
 
 void Map::generate_line_1(int length) {