projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f50d272
)
- added quick&dirty peeking back (not exactly perfect, but better then no peeking)
author
Ingo Ruhnke
<grumbel@gmx.de>
Fri, 24 Aug 2007 18:47:42 +0000
(18:47 +0000)
committer
Ingo Ruhnke
<grumbel@gmx.de>
Fri, 24 Aug 2007 18:47:42 +0000
(18:47 +0000)
SVN-Revision: 5157
src/object/camera.cpp
patch
|
blob
|
history
diff --git
a/src/object/camera.cpp
b/src/object/camera.cpp
index
ed81966
..
42dd1aa
100644
(file)
--- a/
src/object/camera.cpp
+++ b/
src/object/camera.cpp
@@
-486,6
+486,12
@@
Camera::update_scroll_normal(float elapsed_time)
}
}
+ if(player->peeking_direction() == ::LEFT) {
+ lookahead_pos += config.max_speed_x * elapsed_time * 3.0f;
+ } else if(player->peeking_direction() == ::RIGHT) {
+ lookahead_pos -= config.max_speed_x * elapsed_time * 3.0f;
+ }
+
// adjust for level ends
if (player_pos.x < LEFTEND) {
lookahead_pos = LEFTEND;