0.2.4 • Published 6 years ago

phaser-debug-object v0.2.4

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

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

Screenshot

Use

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

6 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago