Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/samples/game-snake.tb
diff options
context:
space:
mode:
Diffstat (limited to 'samples/game-snake.tb')
-rw-r--r--samples/game-snake.tb60
1 files changed, 60 insertions, 0 deletions
diff --git a/samples/game-snake.tb b/samples/game-snake.tb
new file mode 100644
index 0000000..aa157c3
--- /dev/null
+++ b/samples/game-snake.tb
@@ -0,0 +1,60 @@
+[[0, ["start", 2.0], 183, 131, [null, 56]],
+[1, "hat", 740, 420, [null, 2, 13]],
+[2, ["string", "left"], 798, 432, [1, null]],
+[3, "hat", 740, 180, [null, 4, 12]],
+[4, ["string", "right"], 798, 192, [3, null]],
+[5, "stack", 498, 281, [11, 6, 7]],
+[6, ["string", "left"], 556, 281, [5, null]],
+[7, "stack", 498, 323, [5, 8, 9]],
+[8, ["string", "right"], 556, 323, [7, null]],
+[9, "forward", 498, 365, [7, 10, 51]],
+[10, ["number", 10], 569, 365, [9, null]],
+[11, "kbinput", 498, 239, [33, 5]],
+[12, ["vspace", 0], 740, 234, [3, 14]],
+[13, ["vspace", 0], 740, 474, [1, 15]],
+[14, ["if", 0], 740, 276, [12, 16, 20, null]],
+[15, ["if", 0], 740, 516, [13, 17, 22, null]],
+[16, ["equal2", 0], 796, 242, [14, 45, 18, null]],
+[17, ["equal2", 0], 796, 482, [15, 46, 19, null]],
+[18, "keyboard", 852, 284, [16, null]],
+[19, "keyboard", 852, 524, [17, null]],
+[20, "right", 758, 342, [14, 21, null]],
+[21, ["number", 10], 816, 342, [20, null]],
+[22, "left", 758, 582, [15, 23, null]],
+[23, ["number", 10], 816, 582, [22, null]],
+[24, "wait", 201, 537, [35, 25, null]],
+[25, ["number", 0.1], 259, 537, [24, null]],
+[26, "forward", 1020, 276, [30, 27, 39]],
+[27, ["number", 5], 1091, 276, [26, null]],
+[28, "back", 1020, 402, [39, 29, 31]],
+[29, ["number", 5], 1078, 402, [28, null]],
+[30, "penup", 1020, 234, [49, 26]],
+[31, "pendown", 1020, 444, [28, null]],
+[32, "showblocks", 183, 597, [47, null]],
+[33, "hat", 498, 185, [null, 34, 11]],
+[34, ["string", "action"], 556, 197, [33, null]],
+[35, "stack", 201, 495, [47, 36, 24]],
+[36, ["string", "action"], 259, 495, [35, null]],
+[37, "setpensize", 183, 303, [57, 38, 54]],
+[38, ["number", 8], 285, 303, [37, null]],
+[39, ["storein", 0], 1020, 318, [26, 40, 41, 28]],
+[40, ["string", "color"], 1088, 318, [39, null]],
+[41, "see", 1088, 360, [39, null]],
+[42, ["equal2", 0], 239, 395, [47, 43, 53, null]],
+[43, "box", 295, 395, [42, 44, null]],
+[44, ["string", "color"], 350, 395, [43, null]],
+[45, ["number", 3], 852, 242, [16, null]],
+[46, ["number", 1], 852, 482, [17, null]],
+[47, ["until", 21], 183, 429, [48, 42, 35, 32]],
+[48, ["vspace", 0], 183, 387, [54, 47]],
+[49, "hat", 1020, 180, [null, 50, 30]],
+[50, ["string", "look ahead"], 1078, 192, [49, null]],
+[51, "stack", 498, 407, [9, 52, null]],
+[52, ["string", "look ahead"], 556, 407, [51, null]],
+[53, "red", 295, 437, [42, null]],
+[54, "setcolor", 183, 345, [37, 55, 48]],
+[55, "red", 260, 345, [54, null]],
+[56, "clean", 183, 177, [0, 57]],
+[57, ["storein", 0], 183, 219, [56, 58, 59, 37]],
+[58, ["string", "color"], 251, 219, [57, null]],
+[59, "blue", 251, 261, [57, null]]]