summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTinnet Coronam <tinnet@coronam.net>2012-10-16 23:21:54 +0200
committerTinnet Coronam <tinnet@coronam.net>2012-10-16 23:21:54 +0200
commite104f06f42384aa2d5f3e2c62c57ef66f21d8071 (patch)
treec643755bdd9a558a9efc938d5876756104d2b310 /tests
parent1afbaa61f0e1d907e27362f2bb1a38ad67f79cc8 (diff)
downloadpygments-e104f06f42384aa2d5f3e2c62c57ef66f21d8071.tar.gz
added sample file
Diffstat (limited to 'tests')
-rw-r--r--tests/examplefiles/example.monkey60
1 files changed, 60 insertions, 0 deletions
diff --git a/tests/examplefiles/example.monkey b/tests/examplefiles/example.monkey
new file mode 100644
index 00000000..524e7012
--- /dev/null
+++ b/tests/examplefiles/example.monkey
@@ -0,0 +1,60 @@
+Strict
+
+#rem
+this is a
+#rem
+nested
+#end
+comment
+even other preproc keywords are nested within!
+#If TARGET
+#End
+#end
+
+Import mojo
+
+Const ONECONST:Int = 1
+Const TWOCONST := 2
+Const THREECONST := 3, FOURCONST:Int = 4
+
+Class Game Extends App
+
+ ' radial sprial with axis aligned phase
+
+ Function DrawSpiral(clock)
+ Local w=DeviceWidth/2
+ For Local i#=0 Until w*1.5 Step .2
+ Local x#,y#
+ x=w+i*Sin(i*3+clock)
+ y=w+i*Cos(i*2+clock)
+ DrawRect x,y,1,1
+ Next
+ hitbox.Collide(event.pos)
+ End
+
+ Field updateCount
+
+ Method OnCreate()
+ Print "spiral"
+
+ SetUpdateRate 60
+ End
+
+ Method OnUpdate()
+ updateCount+=1
+ End
+
+ Method OnRender()
+ Cls
+ DrawSpiral updateCount
+ DrawSpiral updateCount*1.1
+ End
+
+End
+
+Class VectorNode Extends Node<Vector2D>
+End
+
+Function Main()
+ New Game()
+End