From 4fc31a974d94f7d9a543bc22aa8b394944885a95 Mon Sep 17 00:00:00 2001 From: Marek Moeckel Date: Mon, 6 Jun 2005 00:21:52 +0000 Subject: [PATCH] changed camera to show more of what's above tux SVN-Revision: 2572 --- src/object/camera.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/object/camera.cpp b/src/object/camera.cpp index cb31c4a28..f3dee9afe 100644 --- a/src/object/camera.cpp +++ b/src/object/camera.cpp @@ -210,7 +210,7 @@ Camera::scroll_normal(float elapsed_time) target_y = player->get_bbox().p2.y; // delta_y is the distance we'd have to travel to directly reach target_y - float delta_y = translation.y - (target_y - SCREEN_HEIGHT/2); + float delta_y = translation.y - (target_y - SCREEN_HEIGHT*2/3); // speed is the speed the camera would need to reach target_y in this frame float speed_y = delta_y / elapsed_time; -- 2.11.0