MCPcopy Create free account
hub / github.com/melonjs/melonJS / pause

Method pause

packages/melonjs/src/application/application.ts:823–825  ·  view source on GitHub ↗

* Pause the current stage. Convenience proxy for state.pause. * @param [music=false] - also pause the current music track * @example * app.pause(); // pause game updates, keep music playing * app.pause(true); // pause game updates and music

(music: boolean = false)

Source from the content-addressed store, hash-verified

821 * app.pause(true); // pause game updates and music
822 */
823 pause(music: boolean = false): void {
824 state.pause(music);
825 }
826
827 /**
828 * Resume the current stage. Convenience proxy for {@link state.resume}.

Callers 3

pauseTrackFunction · 0.45
pauseFunction · 0.45
_onBlurMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected