Spell Orbs

Spell orbs
Spell orbs (or simply orbs) are the primary representation of magic in CodeSpells. There are currently four types of Spell orbs. These are :
 * Earth Orbs
 * Water Orbs
 * Fire Orbs
 * Air Orbs

Behavior
Spell orbs are cast by the player. They will fly in the direction the player is facing, unless a spell tells it to do otherwise. A spell orb can also be cast by another spell. Spell orbs are assigned a certain amount of mana which affects its capabilities and lifetime.

It is important to note that a spell orb is registered as "existing" only after the process of its creation has been completed. Hence, if the player attempts to search for a spell orb while s/he is casting it, the spell orb will not be found.

Properties
Spell orbs possess certain properties that can be utilized when creating new spells. The values of these properties can vary depending on how a spell orb was cast and the code underlying the spell orb.