startup-monorepo-fastify-phaser-colyseus-threejs
A repository about starting from scratch for monorepo, fastify, Phaser, colyseus, and threejs.
TypeScript★ 50
Inspect and manipulate sprites with dat.gui. Phaser 2/CE
Inspect and manipulate Phaser Sprites (via dat.gui). Demo
bower install -S samme/phaser-sprite-gui
npm install -S phaser-sprite-gui
If dat.gui/index.js doesn't compile, use dat.gui/build/dat.gui.js instead.
It should work. The exported constructor is identical to Phaser.SpriteGUI.
Add dat.gui.js and index.js before your game scripts.
// In create(): var sprite = game.add.sprite(); // … var gui = new Phaser.SpriteGUI(sprite); // In shutdown(): gui.destroy();
// Example: 320px wide panel
var gui = new SpriteGUI(sprite, {width: 320});
// Example: Show all properties *except* `body`
var gui = new SpriteGUI(sprite, null, {exclude: ['body']});
// Example: Show *only* `body.velocity.x`, `body.velocity.y`
var gui = new SpriteGUI(sprite, null, {include: ['body', 'velocity', 'x', 'y']});
For nested properties, include must contain every name in the property chain.
more like this
A repository about starting from scratch for monorepo, fastify, Phaser, colyseus, and threejs.
search projects, people, and tags