3 ms·
Matt Thorson, the developer of Towerfall, also has some notes on implementing robust platformer physics: http://mattmakesgames.tumblr.com/post/127890619821/towe
by panic 11y ago
Matt Thorson, the developer of Towerfall, also has some notes on implementing robust platformer physics: http://mattmakesgames.tumblr.com/post/127890619821/towerfall-physics http://mattmakesgames.tumblr.com/post/127890619821/towerfall....
The overall idea is to use integer pixel coordinates (to avoid floating point error accumulation) and to step all physics by one pixel at a time (to avoid fast-moving objects passing through the environment).