JavaScript:
*
/* @help =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
* Information
* =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
* For updates and easy to use documentation, please go to the plugin's website:
* http://mvplugins.tordamian.com/?p=437
*
* This plugin replaces MV's update loop with a semi-fixed timestep solution based
* on http://gafferongames.com/game-physics/fix-your-timestep/
*
* This makes the game run at normal speed (animation, movement, and anything else)
* regardless of framerate. By default, MV run on a 144hz monitor would run at
* 144fps and everything would move at 2,4 times normal speed. Likewise, if
* someone ran the game and only managed 30fps, everything would move at half
* normal speed.
*
* This solution decouples visual updates from logic updates so that the latter
* always occur at 60 times per second, while frames get updated as fast as the
* user's computer can display it.
*
* There you can also download a PDF of the documentation for offline use, and
* having the documentation in one cleanly presented place means you can always
* be sure it's the most recent available.
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Terms & Conditions
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* This plugin is free for both non-commercial and commercial use. Please see
* http://mvplugins.tordamian.com/terms-of-use for the full terms of use.
*/