diff options
author | jonas <himself@jonasgunz.de> | 2018-12-10 17:04:23 +0100 |
---|---|---|
committer | jonas <himself@jonasgunz.de> | 2018-12-10 17:04:23 +0100 |
commit | a87a70298aefdcade34739ae2aa3b07436aae328 (patch) | |
tree | bb366013f51785acabadf842bfd6b5e120908407 /AmpelJonas/cCrossroad.cpp | |
parent | c7ee3d48002585362505b68aabd1093a2877e1cc (diff) | |
download | termgl-a87a70298aefdcade34739ae2aa3b07436aae328.tar.gz |
Wrap up for new branchgame
Diffstat (limited to 'AmpelJonas/cCrossroad.cpp')
-rw-r--r-- | AmpelJonas/cCrossroad.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/AmpelJonas/cCrossroad.cpp b/AmpelJonas/cCrossroad.cpp index 10718f6..82c8ed1 100644 --- a/AmpelJonas/cCrossroad.cpp +++ b/AmpelJonas/cCrossroad.cpp @@ -46,8 +46,8 @@ void cCrossroad::run() //init backround->setPosition(0, 0); - backround->drawRectangle('°', '°', sPos{ 0, _SIZE_Y_ / 2 - 4 }, sPos{ _SIZE_X_ - 1, _SIZE_Y_ / 2 + 4 }, _COL_DEFAULT, _COL_DEFAULT); - backround->drawRectangle('°', '°', sPos{ _SIZE_X_ / 2 - 6, 0 }, sPos{ _SIZE_X_ / 2 + 6, _SIZE_Y_ }, _COL_DEFAULT, _COL_DEFAULT); + backround->drawRectangle('�', '�', sPos{ 0, _SIZE_Y_ / 2 - 4 }, sPos{ _SIZE_X_ - 1, _SIZE_Y_ / 2 + 4 }, _COL_DEFAULT, _COL_DEFAULT); + backround->drawRectangle('�', '�', sPos{ _SIZE_X_ / 2 - 6, 0 }, sPos{ _SIZE_X_ / 2 + 6, _SIZE_Y_ }, _COL_DEFAULT, _COL_DEFAULT); //add objects to handler handler.createObject(backround); @@ -153,8 +153,8 @@ void cCrossroad::run() break; } } - - + + carWest.drive(); carEast.drive(); carNorth.drive(); @@ -173,5 +173,6 @@ void cCrossroad::run() iWait--; iFrames++; backround->drawText(to_string(iFrames) , sPos{ 0,0 }, _COL_DEFAULT); //Framecounter + usleep(100*1000); } -}
\ No newline at end of file +} |