Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samme/phaser-debug-emitter
Debug methods for particle emitters
https://github.com/samme/phaser-debug-emitter
phaser
Last synced: 7 days 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 (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-23T05:21:53.000Z (almost 8 years ago)
- Last Synced: 2024-12-25T10:05:47.977Z (about 1 month 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
![Screenshot](https://samme.github.io/phaser-debug-emitter/screenshot.png)
[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)
```