Mercurial > projects > openmelee
comparison 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 |
comparison
equal
deleted
inserted
replaced
17:82efafc87d54 | 18:7f74e064dad5 |
---|---|
1 module testscript | |
2 | |
3 local blah = vec3(1, 2, 30000) | |
4 writeln("created a vec3: ", blah) | |
5 | |
6 writeln("Hello world") | |
7 poop.x = 123 | |
8 writeln("poop.dmax2(1, 20, 150) == ", poop.dmax2(1, 20, 150)) | |
9 writeln("poop.dmax(1, 20) == ", poop.dmax(1, 20)) | |
10 | |
11 writeln("getting a vec3...") | |
12 local v3 = poop.getVec3(3, 6, 9) | |
13 writeln("x = ", v3.x, " y = ", v3.y, " z = ", v3.z) | |
14 | |
15 class Zomg : Poop { | |
16 /+this() { | |
17 super(1, 2, 3) | |
18 }+/ | |
19 | |
20 function dmax(a : int, b : int) { | |
21 return 1337 | |
22 } | |
23 } | |
24 | |
25 poop = Zomg() |