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

Available Packages:

Lightning

Source

string LIGHTNING_CHAIN_LIGHTNING_PRIMARY

Source

string LIGHTNING_CHAIN_LIGHTNING_SEECONDARY

Source

string LIGHTNING_DRAIN

Source

string LIGHTNING_DRAIN_LIFE

Source

string LIGHTNING_DRAIN_MANA

Source

string LIGHTNING_FINGER_OF_DEATH

Source

string LIGHTNING_FORKED_LIGHTNING

Source

string LIGHTNING_HEALING_WAWE_PRIMARY

Source

string LIGHTNING_HEALING_WAWE_SEECONDARY

Source

string LIGHTNING_LIGHTNING_ATTACK

Source

string LIGHTNING_MAGIC_LEASH

Source

string LIGHTNING_MANA_BURN

Source

string LIGHTNING_MANA_FLARE

Source

Source

function addLightning(string codeName, boolean checkVisibility, vec2 start, vec2 _end) returns lightning

Source

Acts as with vec3 version but with z equal to terrain height.

function addLightning(string codeName, boolean checkVisibility, vec3 start, vec3 _end) returns lightning

Source

Warning, z value of vec3 should consider terrain height. (usually with z==0 the lightning spawns very low under ground)

function static lightning.destr() returns boolean

Source

function static lightning.getColor() returns color

Source

Gets given lightning's color. Uses approximation since it's stored in reals.

function static lightning.getColorA() returns real

Source

function static lightning.getColorB() returns real

Source

function static lightning.getColorG() returns real

Source

function static lightning.getColorR() returns real

Source

function static lightning.getColorWithA() returns colorA

Source

Gets given lightning's color with alpha channel. Uses approximation since it's stored in reals.

function static lightning.move(boolean checkVisibility, vec2 start, vec2 _end) returns boolean

Source

Acts as with vec3 version but with z equal to terrain height.

function static lightning.move(boolean checkVisibility, vec3 start, vec3 _end) returns boolean

Source

Warning, z value of vec3 should consider terrain height. (usually with z==0 the lightning spawns very low under ground)

function static lightning.setColor(colorA c) returns boolean

Source

function static lightning.setColor(color c) returns boolean

Source