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

Method freeze

packages/melonjs/src/application/application.ts:854–856  ·  view source on GitHub ↗

* Freeze the current stage for a fixed duration, then automatically resume. * Useful for hit-stop / hit-pause effects on impact. * * Convenience proxy for state.freeze; see that method's * documentation for the full behaviour matrix (extend-not-stack semantics, * interaction with m

(duration: number, music: boolean = false)

Source from the content-addressed store, hash-verified

852 * spawnImpactParticles();
853 */
854 freeze(duration: number, music: boolean = false): Promise<void> {
855 return state.freeze(duration, music);
856 }
857
858 /** @ignore */
859 _tick(time: number): void {

Callers 4

world.jsFile · 0.80
slot.tsFile · 0.80
onMouseDownMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected