diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-04 20:45:18 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-04 20:45:18 -0500 |
commit | 871943d6a90bdb92b3cc495d4d927199611f8c6b (patch) | |
tree | 9be125438747f7370cfa56e3f3e42f8c68982852 /src/input_system.cpp | |
parent | 138e0a8f83e82c6109bfc387ac7417d4f41711b4 (diff) | |
download | tanetane-871943d6a90bdb92b3cc495d4d927199611f8c6b.tar.gz tanetane-871943d6a90bdb92b3cc495d4d927199611f8c6b.tar.bz2 tanetane-871943d6a90bdb92b3cc495d4d927199611f8c6b.zip |
Added text boxes
Text now reveals itself and scrolls! Yay! It even plays speaker beeps. TODO: the arror indicating an A press is needed. Bullets on lines that need bullets. The header that says who the speaker is, if relevant.
Diffstat (limited to 'src/input_system.cpp')
-rw-r--r-- | src/input_system.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/input_system.cpp b/src/input_system.cpp index 7bd605c..a0acc5e 100644 --- a/src/input_system.cpp +++ b/src/input_system.cpp | |||
@@ -27,11 +27,16 @@ void InputSystem::tick(double dt) { | |||
27 | } | 27 | } |
28 | } else if (e.key.keysym.sym == SDLK_a) { | 28 | } else if (e.key.keysym.sym == SDLK_a) { |
29 | // TODO: Remove this, it's just for testing. | 29 | // TODO: Remove this, it's just for testing. |
30 | if (game_.getSystem<MessageSystem>().getCutsceneBarsProgress() == 1.0) { | 30 | /*if (game_.getSystem<MessageSystem>().getCutsceneBarsProgress() == 1.0) { |
31 | game_.getSystem<MessageSystem>().hideCutsceneBars(); | 31 | game_.getSystem<MessageSystem>().hideCutsceneBars(); |
32 | } else { | 32 | } else { |
33 | game_.getSystem<MessageSystem>().displayCutsceneBars(); | 33 | game_.getSystem<MessageSystem>().displayCutsceneBars(); |
34 | } | 34 | }*/ |
35 | //game_.getSystem<MessageSystem>().displayMessage("Some people always try to avoid fighting when there are enemies around. You know the type, right? They use the dash ability to zoom right by. I guess you could say they're followers of \"peace at any price\".", SpeakerType::Woman); | ||
36 | game_.getSystem<MessageSystem>().displayMessage("Go to sleep.\nIn the absolute darkness.\nDon't do aaaanything.\nDon't see anyone.\nJust sleep.\nIt'll be oh, so much fun......!\nOhohohoho!", SpeakerType::Woman); | ||
37 | } else if (e.key.keysym.sym == SDLK_b) { | ||
38 | // TODO: Remove this, it's just for testing. | ||
39 | game_.getSystem<MessageSystem>().advanceText(); | ||
35 | } | 40 | } |
36 | } else if (e.type == SDL_KEYUP && (e.key.keysym.sym == SDLK_LSHIFT || e.key.keysym.sym == SDLK_RSHIFT)) { | 41 | } else if (e.type == SDL_KEYUP && (e.key.keysym.sym == SDLK_LSHIFT || e.key.keysym.sym == SDLK_RSHIFT)) { |
37 | for (int spriteId : game_.getSprites()) { | 42 | for (int spriteId : game_.getSprites()) { |