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 FATFileSystem
Diff: GolfEngine/GolfEngine.cpp
- Revision:
- 6:747335f697d6
- Parent:
- 5:0b31909caf7f
- Child:
- 7:5a19dd9fe8a4
--- a/GolfEngine/GolfEngine.cpp Wed Apr 17 10:27:09 2019 +0000 +++ b/GolfEngine/GolfEngine.cpp Wed Apr 17 10:35:52 2019 +0000 @@ -2,18 +2,7 @@ void GolfEngine::init() { - _x_pos = 24; - _y_pos = 32; - _ball.init(_x_pos, _y_pos); - - Course _level_1[6] = { //first coord start second end - {LEFT,{9,26},{9,40}}, //top to bottom - {BOTTOM,{9,40},{74,40}}, //left to right - {RIGHT,{74,9},{9,40}}, //top to bottom - {TOP,{50,9},{74,9}}, //left to right - {LEFT,{50,9},{50,26}}, //top to bottom - {TOP,{9,26},{50,26}} //left to right - }; + } void GolfEngine::drawGame(N5110 &lcd)