Weapon#debug()

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)
doc_phaser
2017-02-14 11:19:49
Comments
Leave a Comment

Please login to continue.