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

Function onComplete

packages/melonjs/src/state/state.ts:605–607  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

603 // apply transition effect if configured
604 if (_transitionConfig.duration && _stages[stateId].transition) {
605 const onComplete = () => {
606 defer(_switchState, state, stateId);
607 };
608
609 switch (_transitionType) {
610 case "fade": {

Callers 3

changeFunction · 0.70
setCurrentAnimationMethod · 0.50
setCurrentAnimationMethod · 0.50

Calls 1

deferFunction · 0.90

Tested by

no test coverage detected