https://github.com/samme/phaser-debug-emitter
Debug methods for particle emitters
https://github.com/samme/phaser-debug-emitter
phaser
Last synced: 2 months ago
JSON representation
Debug methods for particle emitters
- Host: GitHub
- URL: https://github.com/samme/phaser-debug-emitter
- Owner: samme
- Created: 2017-02-06T23:40:48.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-23T05:21:53.000Z (over 8 years ago)
- Last Synced: 2025-02-25T15:05:19.213Z (3 months ago)
- Topics: phaser
- Language: CoffeeScript
- Homepage: https://samme.github.io/phaser-debug-emitter/
- Size: 275 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README

[Demo](https://samme.github.io/phaser-debug-emitter/)
Use ✨
---```javascript
// 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)
```