try to make the scrolling a bit smoother
authorMatthias Braun <matze@braunis.de>
Mon, 24 May 2004 21:28:44 +0000 (21:28 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 24 May 2004 21:28:44 +0000 (21:28 +0000)
SVN-Revision: 1312

src/camera.cpp

index b7d3afd..1db1c9d 100644 (file)
@@ -131,7 +131,7 @@ Camera::scroll_normal(float elapsed_time)
   float delta_x = translation.x - target_x;
   float speed_x = delta_x / elapsed_time;
 
-  float maxv = 1 + fabsf(player->physic.get_velocity_x() * 2);
+  float maxv = 1 + fabsf(player->physic.get_velocity_x() * 1.3);
   if(speed_x > maxv)
     speed_x = maxv;
   else if(speed_x < -maxv)