From cee662ed6b4057a05f2a59c91e8c8a9b76476ebc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Fri, 7 Sep 2018 19:52:04 +0200 Subject: [PATCH] Improve movement --- game.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/game.cpp b/game.cpp index a85476f..d5784d7 100644 --- a/game.cpp +++ b/game.cpp @@ -689,6 +689,7 @@ public: mCamera.collisionRadius = UNITS_PER_SQUARE / 4; mCamera.collisionHeightBelow = UNITS_PER_SQUARE; mCamera.collisionHeightAbove = UNITS_PER_SQUARE / 3; + mCamera.collisionStepHeight = UNITS_PER_SQUARE / 2; } }; @@ -846,7 +847,7 @@ int main() { draw(); - const int16_t step = max(UNITS_PER_SQUARE / 7,1); + int16_t step = max(1,UNITS_PER_SQUARE / (p.bBtn() ? 7 : 15)); const int16_t step2 = max(UNITS_PER_SQUARE / 40,1); Vector2D d = angleToDirection(player.mCamera.direction);