instance method Game#setGameSpeed
Game#setGameSpeed(updatesPerSecond) → Game
-
updatesPerSecond
(Number
) – The number of updates-per-second the game should attempt to achieve.
Sets the "Game Speed", or attempted times Game#update
gets called
per second. This can be called at any point during gameplay. Note that
sounds and music playback speed do not get affected by this value.