Re:HTML5 Games Workshop: Make a Platformer Game with JavaScript
by mfichman on Wednesday April 05, 2017 @10:09PM
(#14047376)
Using the delta between frames directly isn't quite right either, but it's better than writing framerate-dependent code. I think an even better way is to use an accumulator with a fixed time step, as described here: http://gafferongames.com/game-physics/fix-your-timestep/
[ Parent
| on HN ]
Re:HTML5 Games Workshop: Make a Platformer Game with JavaScript
by koonsolo on Thursday April 06, 2017 @06:33AM
(#14049367)
Yes, that article is 100% correct.
Shameless plug here: A long time ago I wrote an article on how to implement a proper game loop, http://www.koonsolo.com/news/dewitters-gameloop/