diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-05 20:20:21 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-05 20:20:21 -0500 |
commit | bd1a66887f00e186ab86a5195ebb3271ea732b38 (patch) | |
tree | d3fc0335d98f386877b991f538e2645ff6d74fd1 /src/input_system.cpp | |
parent | ccf0fab9f7b8057afc5884e70fff29109f707bf8 (diff) | |
download | tanetane-bd1a66887f00e186ab86a5195ebb3271ea732b38.tar.gz tanetane-bd1a66887f00e186ab86a5195ebb3271ea732b38.tar.bz2 tanetane-bd1a66887f00e186ab86a5195ebb3271ea732b38.zip |
Created script system
Diffstat (limited to 'src/input_system.cpp')
-rw-r--r-- | src/input_system.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/input_system.cpp b/src/input_system.cpp index b70b377..6ddb59e 100644 --- a/src/input_system.cpp +++ b/src/input_system.cpp | |||
@@ -2,6 +2,7 @@ | |||
2 | #include "game.h" | 2 | #include "game.h" |
3 | #include "character_system.h" | 3 | #include "character_system.h" |
4 | #include "message_system.h" | 4 | #include "message_system.h" |
5 | #include "script_system.h" | ||
5 | 6 | ||
6 | struct Input { | 7 | struct Input { |
7 | bool left = false; | 8 | bool left = false; |
@@ -32,9 +33,10 @@ void InputSystem::tick(double dt) { | |||
32 | } else { | 33 | } else { |
33 | game_.getSystem<MessageSystem>().displayCutsceneBars(); | 34 | game_.getSystem<MessageSystem>().displayCutsceneBars(); |
34 | }*/ | 35 | }*/ |
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\".", "Sparrow", SpeakerType::Woman); | 36 | //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\".", "Sparrow", SpeakerType::Woman); |
36 | //game_.getSystem<MessageSystem>().displayMessage("Lucas. You're awful at hide-and-seek, you know that? Try harder.", "Kumatora", SpeakerType::Woman); | 37 | //game_.getSystem<MessageSystem>().displayMessage("Lucas. You're awful at hide-and-seek, you know that? Try harder.", "Kumatora", SpeakerType::Woman); |
37 | //game_.getSystem<MessageSystem>().displayMessage("Hi Tooth! I hope you're having a good day.", "Lucas", SpeakerType::Boy); | 38 | //game_.getSystem<MessageSystem>().displayMessage("Hi Tooth! I hope you're having a good day.", "Lucas", SpeakerType::Boy); |
39 | game_.getSystem<ScriptSystem>().runScript("script0001"); | ||
38 | } else if (e.key.keysym.sym == SDLK_b) { | 40 | } else if (e.key.keysym.sym == SDLK_b) { |
39 | // TODO: Remove this, it's just for testing. | 41 | // TODO: Remove this, it's just for testing. |
40 | game_.getSystem<MessageSystem>().advanceText(); | 42 | game_.getSystem<MessageSystem>().advanceText(); |