3 Likes
I’ve added a lot of helper functions for inspecting common objects (sprites, physics bodies, tweens, timers, sounds, etc.) and made demos including a First Phaser 3 game clone.
You can now inspect game objects by searching the scene display/update lists by index, name, or type. Also added a light inspector.
Prerelease for Phaser 3.60. See sprite effects:
function preload() {
this.load.scripts('inspector', [
'https://cdn.jsdelivr.net/npm/tweakpane@3.1.0/dist/tweakpane.js',
'https://cdn.jsdelivr.net/npm/phaser-plugin-inspector@2.0.0-1/dist/phaser-plugin-inspector.umd.js',
]);
this.load.once('complete', () => {
PhaserPluginInspector.Install(this.plugins);
});
}
npm install phaser-plugin-inspector@next tweakpane
- Docs in v2.0.0-1/README.md
- CDN files in phaser-plugin-inspector@2.0.0-1