Created
September 28, 2013 22:28
-
-
Save anonymous/6747411 to your computer and use it in GitHub Desktop.
magic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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