Your browser does not support HTML5 canvas. Fork me on GitHub

Available Packages:

Destructable

Source

function gate.close()

Source

Closes a destructable gate

function createDestructable(int id, vec3 pos, angle direction, real scale, int variation) returns destructable

Source

function createDestructable(int id, vec2 pos, angle direction, real scale, int variation) returns destructable

Source

function elevator.down()

Source

Moves a destructable elevator one step down

function elevator(destructable elevatable) returns elevator

Source

Tuple wrapper for destructable elevator API

function elevator.elevatorSetHeight(int height)

Source

Moves a destructable elevator to given height

function gate(destructable killable) returns gate

Source

Tuple wrapper for destructable gates API

function getElevatorHeightBound(int height) returns int

Source

Returns elevator adjusted height based on given bounds

function elevator.getHeight() returns int

Source

Get a destructable elevator height

function static destructable.getInvulnerable() returns boolean

Source

function static destructable.getLife() returns real

Source

function static destructable.getMaxLife() returns real

Source

function static destructable.getName() returns string

Source

function static destructable.getOccluderHeight() returns real

Source

function static destructable.getPos() returns vec2

Source

function static destructable.getTypeId() returns int

Source

function static destructable.getX() returns real

Source

function static destructable.getY() returns real

Source

function isElevatorHeightInBounds(int height) returns boolean

Source

Returns elevator adjusted height based on given bounds

function static destructable.kill()

Source

function gate.kill()

Source

Destroys a destructable gate

function gate.open()

Source

Opens a destructable gate

function static destructable.queueAnimation(string anim)

Source

function static destructable.remove()

Source

function static destructable.restoreLife(real life, boolean birth)

Source

function static destructable.setAnimation(string anim)

Source

function static destructable.setAnimationSpeed(real speedFactor)

Source

function elevator.setHeight(int height)

Source

Set elevator height to given value.

function static destructable.setInvulnerable(boolean flag)

Source

function static destructable.setLife(real life)

Source

function static destructable.setMaxLife(real max)

Source

function static destructable.setOccluderHeight(real height)

Source

function gate.setOpen(boolean flag)

Source

Sets the gate's open/close state

function static destructable.show(boolean flag)

Source

function elevator.up()

Source

Moves a destructable elevator one step up