Mercurial > projects > openmelee
view test/testScript.md @ 18:7f74e064dad5
refactored code
author | zzzzrrr <mason.green@gmail.com> |
---|---|
date | Wed, 25 Mar 2009 11:28:25 -0400 |
parents | testScript.md@82efafc87d54 |
children |
line wrap: on
line source
module testscript local blah = vec3(1, 2, 30000) writeln("created a vec3: ", blah) writeln("Hello world") poop.x = 123 writeln("poop.dmax2(1, 20, 150) == ", poop.dmax2(1, 20, 150)) writeln("poop.dmax(1, 20) == ", poop.dmax(1, 20)) writeln("getting a vec3...") local v3 = poop.getVec3(3, 6, 9) writeln("x = ", v3.x, " y = ", v3.y, " z = ", v3.z) class Zomg : Poop { /+this() { super(1, 2, 3) }+/ function dmax(a : int, b : int) { return 1337 } } poop = Zomg()