diff --git a/SeasonsOfLoneliness.cpp b/SeasonsOfLoneliness.cpp index b1d456f..70a2c2f 100644 --- a/SeasonsOfLoneliness.cpp +++ b/SeasonsOfLoneliness.cpp @@ -144,10 +144,16 @@ public: DOME_DECAL=new olc::Decal(new olc::Sprite("assets/dome.png")); BASE_OBJECTS["DOME"]=DOME_DECAL; LoadMap("assets/maps/map1"); + DisplayMessageBox(7); return true; } - bool GetAnyKey() override { + void GetAnyKeyPress() override { + if (messageBoxVisible) { + while (messageBoxCursor=STORY_TEXT1.length()) { @@ -155,7 +161,6 @@ public: } }break; } - return true; } bool OnUserUpdate(float fElapsedTime) override @@ -234,37 +239,10 @@ public: if (messageBoxVisible) { if (frameCount%MESSAGE_SCROLL_WAIT_SPD==0) { if (messageBoxCursorWIDTH-16) { - int tempIndex=messageBoxCursor; - while (messageBoxText[--tempIndex]!=' ') { - messageBoxText.erase(tempIndex); - } - messageBoxText.erase(tempIndex++); - messageBoxText+='\n'; - while (tempIndexWIDTH-16) { + int tempIndex=messageBoxCursor; + while (messageBoxText[--tempIndex]!=' ') { + messageBoxText.erase(tempIndex); + } + messageBoxText.erase(tempIndex++); + messageBoxText+='\n'; + while (tempIndex