projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce55194
)
changed camera to show more of what's above tux
author
Marek Moeckel
<wansti@gmx.de>
Mon, 6 Jun 2005 00:21:52 +0000
(
00:21
+0000)
committer
Marek Moeckel
<wansti@gmx.de>
Mon, 6 Jun 2005 00:21:52 +0000
(
00:21
+0000)
SVN-Revision: 2572
src/object/camera.cpp
patch
|
blob
|
history
diff --git
a/src/object/camera.cpp
b/src/object/camera.cpp
index
cb31c4a
..
f3dee9a
100644
(file)
--- 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;