Melonjs Events

Use this skill for the melonJS event bus and lifecycle hooks — subscribing to engine events, the per-frame and per-state event names, renderable lifecycle callbacks, and how to unsubscribe without leaking. Triggers on: event.on, event.off, event.once, event.emit, GAME_UPDATE, GAME_BEFORE_DRAW, LEVEL_LOADED, LOADER_COMPLETE, STATE_CHANGE, CANVAS_ONRESIZE, POINTERMOVE, WORLD_STEP, onActivateEvent, onDeactivateEvent, onDestroyEvent, lifecycle, subscribe, listener.

melonjs 4573f63 6.9 KB Updated

File contents

melonjs/melonjs/tree/main/packages/melonjs/skills/melonjs-events commit 4573f6311e

Frequently asked questions

npx skillmds@latest add melonjs/melonjs-events