comparison 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
comparison
equal deleted inserted replaced
16:cc494b8f8710 17:82efafc87d54
1 module testscript 1 module testscript
2 writeln("Hi, I'm a scripty!") 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()