Draws properties of Arcade Physics bodies. Demo
Install
npm install -S phaser-plugin-debug-arcade-physics
or
bower install -S samme/phaser-plugin-debug-arcade-physics
or add DebugArcadePhysics.js after phaser.js.
Use 🚀
gameplugins;// ORgameplugins;
Configure
You can try these in the demo.
gamedebugarcade; // -> see console for values
Filters
Some filters are included:
exists
isAlive
isBullet
isNotBullet
isNotParticle
isNotSprite
isParticle
isSprite
// Example:// Hide bodies of objects w/ exists=false (Phaser ignores these, but doesn't disable them)gamedebugarcade; // Example:// Keep automatic rendering 'on' but limit to Bulletsgamedebugarcade; // Example:// Keep automatic rendering 'on' but limit to certain objects:gamedebugarcade;
Special uses
// Turn automatic rendering offgamedebugarcade // Draw just one bodygamedebugarcade; // Draw one property of one bodygamedebugarcade;