diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2016-06-10 15:33:02 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2016-06-10 15:33:02 -0400 |
commit | 076c984c438bea2b34f8dd3a62bb31ebd2eb5282 (patch) | |
tree | b0252c6c054a86eebdf00afccd0afa83e7ff911a /src/ui.cpp | |
parent | 1e9f6aaddb2d21045f5e7dc63d6312a4407b3a08 (diff) |
actual game making
Diffstat (limited to 'src/ui.cpp')
-rw-r--r-- | src/ui.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1256,6 +1256,8 @@ EXIT: if (fadeEnable) break; player->vel.x = -PLAYER_SPEED_CONSTANT; + if (std::stoi(game::getValue("Slow")) == 1) + player->vel.x /= 2.0f; player->left = left = true; player->right = right = false; if (currentWorldToLeft) { @@ -1270,6 +1272,8 @@ EXIT: if (fadeEnable) break; player->vel.x = PLAYER_SPEED_CONSTANT; + if (std::stoi(game::getValue("Slow")) == 1) + player->vel.x /= 2.0f; player->right = right = true; player->left = left = false; if (currentWorldToRight) { |