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: about 2 months ago
JSON representation

Adds `game.debug.object()`, a generic object display

Lists

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
});
```