How do I work with “delta” in Slick2D/LWJGL or game programming in general?
问题 All I know is that delta relates somehow to adapting to different frame rates, but I'm not sure exactly what it stands for and how to use it in the math that calculates speeds and what not. Where is delta declared? initialized? How is it used? How are its values (min,max) set? 回答1: It's the number of milliseconds between frames. Rather than trying to build your game on a fixed number of milliseconds between frames, you want to alter your game to move/update/adjust each element/sprite/AI based