Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samme/phaser-debug-object
Adds `game.debug.object()`, a generic object display
https://github.com/samme/phaser-debug-object
phaser phaser-debug
Last synced: 4 months ago
JSON representation
Adds `game.debug.object()`, a generic object display
- Host: GitHub
- URL: https://github.com/samme/phaser-debug-object
- Owner: samme
- Created: 2017-02-16T19:12:38.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-11T00:57:01.000Z (about 7 years ago)
- Last Synced: 2024-09-29T17:05:13.418Z (4 months ago)
- Topics: phaser, phaser-debug
- Language: CoffeeScript
- Homepage: https://samme.github.io/phaser-debug-object/
- Size: 161 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Adds `game.debug.object()`, a generic object display.
![Screenshot](https://samme.github.io/phaser-debug-object/screenshot.png)
Use
---```javascript
game.debug.object(obj, x, y, {
// Options: (optional; these are defaults)
boldLabel: true,
color: 'white', // 'auto' to color by value type
filter: null, // (val, key) -> true (include) or false (skip)
keys: null, // ['key', …] : Include only these keys. You can get non-enumerable and inherited properties this way.
label: null, // Printed at top
map: null, // Transform values by `obj.map(mapFunc)`
precision: 2, // Number precision (decimal digits)
sort: false // Sort by key
});
```