Skip to main content

Bridge

Static​

activateAll​

Activates all bridges passed.

Bridge.activateAll(bridges: array) -> none

deactivateAll​

Deactivates all bridges passed.

Bridge.deactivateAll(bridges: array) -> none

Methods​

isActive​

Returns true if the instance has been activated.

bridge:isActive() -> boolean

activate​

Activates the bridge instance.

bridge:activate() -> none

deactivate​

Deactivates the bridge instance.

bridge:deactivate() -> none

Properties​

sprite​

  • Type: sprite instance

Sprite to represent the bridge.

callback​

  • Type: function

Function called on activation.

position​

  • Type: object

Position of the sprite on the canvas.