JavaScript Interface

As of version 0.400c, in addition to programing spells with Blockly, it is possible to write JavaScript code to control your spells. A few functions have slightly more flexibilty in JavaScript than in Blockly, but for the most part the difference between the two interfaces is preferential. Below is a list of known CodeSpells-specific JavaScript functions as of version 0.400c (Does not include functions added in 0.501c or 0.502c):

Control:

Movement:

Properties:

World Objects:

Earth Powers:

Water Powers:

Fire Powers:

Debug: