phaser-debug-object

0.2.4 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i phaser-debug-object

Weekly Downloads

0

Version

0.2.4

License

ISC

Last publish

Collaborators

  • samme