Home

Awesome

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