Mercurial > projects > openmelee
diff testScript.md @ 17:82efafc87d54
fixed camera zoom
author | zzzzrrr <mason.green@gmail.com> |
---|---|
date | Tue, 24 Mar 2009 16:47:42 -0400 |
parents | cc494b8f8710 |
children |
line wrap: on
line diff
--- a/testScript.md Tue Mar 24 13:29:16 2009 -0400 +++ b/testScript.md Tue Mar 24 16:47:42 2009 -0400 @@ -1,2 +1,25 @@ module testscript -writeln("Hi, I'm a scripty!") + +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()