debug(x, y, debugBodies)
Uses Game.Debug
to draw some useful information about this Weapon, including the number of bullets
both in-flight, and available. And optionally the physics debug bodies of the bullets.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
x | integer | <optional> | 16 | The coordinate, in screen space, at which to draw the Weapon debug data. |
y | integer | <optional> | 32 | The coordinate, in screen space, at which to draw the Weapon debug data. |
debugBodies | boolean | <optional> | false | Optionally draw the physics body of every bullet in-flight. |
- Source code: plugins/weapon/WeaponPlugin.js (Line 1086)
Please login to continue.