Loading...
Loading...
This skill should be used when the user reports a Phaser 4 bug, black screen, missing sprite, failed collision, broken physics, animation issue, crash, console error, performance problem, slow game, save/load issue, mobile runtime issue, or unexpected gameplay behavior.
npx skill4agent add yakoub-ai/phaser4-gamedev phaser-debuggersrc/main.tsnpx tsc --noEmitthis.physicsthis.inputthis.animstime.addEvent()clear(true,true)destroy()this.cameras.main.width/heightreferences/agent-guidance.md// Add to main.ts BEFORE new Phaser.Game(config)
window.onerror = (msg, _src, _line, _col, err) => {
console.error('GLOBAL ERROR:', msg, err?.stack);
};
window.onunhandledrejection = (ev) => {
console.error('UNHANDLED REJECTION:', ev.reason);
};references/agent-guidance.md → Silent Freezeconsole.log('pool free:', pool.getTotalFree())references/agent-guidance.md → Pool Slot Leakupdate()cinematicModeskills/phaser-animation/references/state-machine-patterns.mdreferences/agent-guidance.md → Race Between Two Systemsbody.velocityreferences/agent-guidance.md → Stuck Detection Failsreferences/agent-guidance.mdmodelcolortools