/phaser-debug-emitter

Debug methods for particle emitters

Primary LanguageCoffeeScript

Screenshot

Demo

Use ✨

// Show center and area
// {color}, if null, depends on the emitter's `on` state
game.debug.emitter(emitter, color = null, filled = true)

// List properties
game.debug.emitterInfo(emitter, x, y, color = null)

// Count existing particles
// Bar is {width}px × {height}px
game.debug.emitterTotal(emitter, x, y, width = 100, height = 10, color = null, label = emitter.name)