aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/hello.alv2
-rw-r--r--examples/love.alv7
2 files changed, 9 insertions, 0 deletions
diff --git a/examples/hello.alv b/examples/hello.alv
new file mode 100644
index 0000000..5376cb0
--- /dev/null
+++ b/examples/hello.alv
@@ -0,0 +1,2 @@
+([1]import* time)
+([2]print ([3]every 0.5 "hello world!"))
diff --git a/examples/love.alv b/examples/love.alv
new file mode 100644
index 0000000..7158e60
--- /dev/null
+++ b/examples/love.alv
@@ -0,0 +1,7 @@
+([1]import* love math time)
+([2]draw ([3]->>
+ ([8]rectangle 'fill' 100 100)
+ ([14]color 1 0 0)
+ ([15]scale ([16]switch ([17]mouse-down? 1) 0.5 1))
+ ([5]rotate ([9]ramp 2 tau))
+ ([4]translate ([10]mouse-pos))))