From: Marek Moeckel Date: Mon, 6 Jun 2005 00:21:52 +0000 (+0000) Subject: changed camera to show more of what's above tux X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=4fc31a974d94f7d9a543bc22aa8b394944885a95;p=supertux.git changed camera to show more of what's above tux SVN-Revision: 2572 --- 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;