From 076c984c438bea2b34f8dd3a62bb31ebd2eb5282 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Fri, 10 Jun 2016 15:33:02 -0400 Subject: actual game making --- src/ui.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ui.cpp') diff --git a/src/ui.cpp b/src/ui.cpp index f32bc79..c5d134e 100644 --- a/src/ui.cpp +++ b/src/ui.cpp @@ -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) { -- cgit v1.2.3