[Super-tux-commit] supertux/src player.cpp,1.178,1.179
Brought to you by:
wkendrick
From: Marek M. <wa...@us...> - 2004-10-03 10:58:35
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16931/src Modified Files: player.cpp Log Message: -made flapping less powerful by reducing speed and height -updated testing parcours accordingly TODO: The sliding glitch (see test/level13) sometimes happens happens here, too, after climbing onto an edge by flapping. Index: player.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/player.cpp,v retrieving revision 1.178 retrieving revision 1.179 diff -u -d -r1.178 -r1.179 --- player.cpp 23 Sep 2004 19:40:31 -0000 1.178 +++ player.cpp 3 Oct 2004 10:58:04 -0000 1.179 @@ -581,11 +581,13 @@ can_flap = false; falling_from_flap = true; } + if (physic.get_velocity_x() > 0) {physic.set_velocity_x(WALK_SPEED);} + else if (physic.get_velocity_x() < 0) {physic.set_velocity_x(WALK_SPEED * (-1));} jumping = true; flapping = true; if (flapping_timer.get_gone() <= TUX_FLAPPING_TIME) { - physic.set_velocity_y((float)flapping_timer.get_gone()/450); + physic.set_velocity_y((float)flapping_timer.get_gone()/700); } } |