Skip to content

Instantly share code, notes, and snippets.

Created September 28, 2013 22:28
Show Gist options
  • Save anonymous/6747411 to your computer and use it in GitHub Desktop.
Save anonymous/6747411 to your computer and use it in GitHub Desktop.
magic
Mana = hp
spells = word-combos
spells ~ forth (a stack-based programming language)
f = force, takes 1 input, [force]
applys a force of [force] on a radius of 1 around the casting point for 1 time in the z+ direction
cast-point is coord = {0, 0, 0}
x=+left-right,y=+up-down,z=+forward-backward
the numbers are in nano- SI units
direction = degrees, deg=0=z+
p = photon, takes 2 input, [energy], [wl]
creats [energy] milli-joule of light at cast point with wavelength [wl], going in the z+ direction
c = cast, takes 6 inputs, [x], [y], [z], [xy-axis], [yz-axis], [cast-id]
creates new cast-point at {[x], [y], [z]} in direction {[xy-axis], [yz-axis]}
pushes [cast-id] unto stack
enters stack of new caster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment