Oolite JavaScript Reference: Frame Callbacks

From Elite Wiki
Revision as of 11:27, 31 July 2024 by Cholmondely (talk | contribs) (Added a little more)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Frame callbacks are user-defined JavaScript functions that run on every single game "frame update".

Overview

These are faster than timers, which only fire 4 times a second. See Oolite JavaScript Reference: Timer for more on those.

Frame callbacks can be used for a number of purposes including animations

"shift-F" - Displays frame rate, object- and collision-counter and player's pwm-coordinates. (Only available in "Developer Release" versions of Oolite.)


Links