summaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game.c b/src/game.c
index 01633bc..d17e432 100644
--- a/src/game.c
+++ b/src/game.c
@@ -353,12 +353,12 @@ static void move_camera(platform_window* window) {
float speedx = window->width / 1000.0f;
float diffx = (_next_camera_pos.x - _global_camera.x);
if (abs(diffx) <= speedx) diffx = 0.0f;
- speedx += (abs(diffx)/200.0f*speedx);
+ speedx += (abs(diffx)/50.0f*speedx);
float speedy = window->height / 600.0f;
float diffy = (_next_camera_pos.y - _global_camera.y);
if (abs(diffy) <= speedy) diffy = 0.0f;
- speedy += (abs(diffy)/200.0f*speedy);
+ speedy += (abs(diffy)/50.0f*speedy);
float length = sqrt(diffx * diffx + diffy * diffy);
if (length == 0) length = 1.0f;