Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: Map/Map.cpp
- 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) {