New example code: Hops on the ground
authorJoachim Breitner <mail@joachim-breitner.de>
Sun, 10 May 2009 21:39:54 +0000 (23:39 +0200)
committerJoachim Breitner <mail@joachim-breitner.de>
Sun, 10 May 2009 21:39:54 +0000 (23:39 +0200)
examples/hopper.txt [new file with mode: 0644]

diff --git a/examples/hopper.txt b/examples/hopper.txt
new file mode 100644 (file)
index 0000000..5eeacb6
--- /dev/null
@@ -0,0 +1,22 @@
+Rule "Start"
+WHEN Length <= 0
+BRANCH AT 100% ANGLE = 30°, LENGTH = 0.5
+BRANCH AT 100% ANGLE = -30°, LENGTH = 0.5
+
+RULE "Links"
+WHEN Direction > 0 AND Direction < 140°
+BRANCH AT 100% ANGLE = 30°, LENGTH = 0.5
+
+RULE "Zurück"
+WHEN Direction >= 140°
+BRANCH AT 100% ANGLE = -120°, LENGTH = 0.5
+
+RULE "Rechts"
+WHEN Direction < 0 AND Direction > -140°
+BRANCH AT 100% ANGLE = -30°, LENGTH = 0.5
+
+RULE "Zurück"
+WHEN Direction <= -140°
+BRANCH AT 100% ANGLE = 120°, LENGTH = 0.5
+
+