This wiki is deprecated. Visit https://wiki.ddnet.org/wiki/Movement for the current version
Gravitation: Every tick the acceleration of 0.5 is added to the y velocity (downwards).
velocy.x = velocy.x * 0.95
velocy.x = velocy.x * 0.5
a
or d
:
Max speed: 6000 Sub-tiles/Tick (+speedup in one tick, e.g. gravity, jetpack, explosion).
src/game/gamecore.cpp
(before calculating new position from velocity):if(length(m_Vel) > 6000)
m_Vel = normalize(m_Vel) * 6000;
This is the bottle neck in vertical movement. In horizontal movement a “ramp”-Value is multiplied to the horizontal speed. Causing the tee to slow down and stop when getting too fast. This is most commonly observed in speed ups.
The speed is rounded down to a precision of 1/256 every tick. This is causing the tee to stop moving horizontal when having too much speed.
Todo: