Melonjs Scenes And State

Use this skill for scene structure and game flow in melonJS — Stage subclasses, the state manager, transitions, pausing, the update loop, timers and tweens. Covers onResetEvent versus the constructor, state.set before state.change, the camera and world lifecycle per stage, and pause-aware timing. Triggers on: Stage, state, state.set, state.change, state.transition, state.pause, onResetEvent, onDestroyEvent, onActivateEvent, onDeactivateEvent, PLAY, MENU, LOADING, update loop, GAME_UPDATE, timer, setTimeout, setInterval, Tween, freeze.

melonjs a2b6cea 9.4 KB Updated

File contents

melonjs/melonjs/tree/main/packages/melonjs/skills/melonjs-scenes-and-state commit a2b6cea8d7

Frequently asked questions

npx skillmds@latest add melonjs/melonjs-scenes-and-state