turtlestitch/Examples/vee.xml

1 wiersz
12 KiB
XML

<project name="vee" version="1"><notes>This is the project which started it all. After an example by E. Paul Goldenberg. Featuring recursion without the need for a base case and first class custom blocks it was Brian&apos;s demo at the 2008 Scratch conference, why Scratch needed custom procedures.To this day, Vee is the first project we test whenever we change anything or add new features to Snap.</notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAOXklEQVR4nO2dW3AUV3rH5yF5Wu1Fm6ScNdveh9SmUqGyecim1qQ2tX7YLSgn2kXIiYPLKpcXLUIYgbCgJRsbAaa4GUdgkFRgMBLowk0YYZBGFySN7hqN5qKZ6ZnWTI8kbMnGRES4k2wAr/55wOd4rj0jiXKnx9+v6l90n3P69FfVv+nbUBoTCEJHTHoXQCwdv9+PI0eOLCrl5eUoLy9PuT3VnDhxAvPz80lrJwENTn19Paampng+v38rYl3vzMzMaNZPAhqcyclJTE1Noa6uDr2DVjzEFObu+mEymb7KT9ZD8Z7BoSMVmJyc5GGShLdp9UfLlco8N27c0KyfBDQ4ExMTPHfu3wfwOf7wh4/w8Pf/he+ZTPifBw/w8ccf4c6dGdy7dw+Tk5N8fCLxWJKNC993vExOTuL69eua9ZOABieZBHqHBExzQqEQQqEQHty/jxv/9mfw5v85pPwf6JcNP8Dd07/FxMQEQqEQCZjuKIoCRVEQkNy4s3UZuq+d5/dkt27dwq1biR9KovtTXdead7p0OVRR4B8MEjDNYQIqsoQLezdGPBRYDhXjw198G91nK9De3h6RtrY2tLW1xbQn6j+wMRddv/wOlD0vJnwomZqawsD1BqiiwOv68MMPNesnAQ1OMBjkAr7zzjsRDwk1T2fA3NKCvIJ8rO1pwNqeBuwfuIqjR4+ivLwchw8fRmFhIe+LzrtHy1FZWclTtnMn5KzMpA8vqiggGAwiGAzi2rVrmvWTgAaHHWhFlnD48OGIp9OaFRmorKzE2p4GmGpKecIlC2+PScnaCAErKyshZ2ViYmKC7zfegwcTMBAIkIDpTiAQwPj4OB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xOOX/845/jg6ZrC9rGbDZz6di/u4vWQRUFtLa2wmw2k4DpTn19PcxmM7zOUdwt/iHK8v8VTZfPw2w2o6WlBS0tLTHSRLez9egk2i7euJaWFpRtfhmqKEAt+RHMZjP/cGhBAhqczz77jJ/15ufn9S4HwKO/2trS0pL0AQQgAdOC2dnZuH80SM84nc6UPhAkIKErJCChKyQgoSskIKErJCChKyQgoSskIKErJCChKyQgoSskIKErJCChKyQgoSskIKErJCChKyQgoSskIKErJCChKyQgoSskIKErJCChKyQgoSskIKErJCChKyQgoSskIKErJCChKyQgoSskIKErJCChKyQgoSskIKErJCChKyTgAtiyZQtfzs3N1bGS9IEEXAB3797lv8Fx+/ZtvctJC0jABXD16lXMzc0BAF566aWY/rm5OQSDQZSUlHzNlRkXEjBFurq6UFZWhueffx6bN29Gc3Mzurq6Isa8/PLL+hRnYEjARZDsFyAB4NixY19DJcaHBFwEJ0+ejGk7deoUduzYAb/fDwAxZ0ciPiTgItiwYUNMW35+Pl/+4osvvs5yDA0JSOgKCbhICgoK4i4TC4MEXCQnTpyIu0wsDBKQ0BUScAmsWbMGa9as0bsMQ0MCLoHp6WlMT0/rXYahIQGXwPz8/P+bn0g1KiTgEli1ahVWrlypdxmGhgRcAtnZ2cjOzta7DENDAi6B1atXY/Xq1XqXYWhIwEUSCoW4gIqi6F2OYSEBF8ny5cu5gMuXL9e7HMNCAi4SJh9dhpcGCbhISMDHAwm4COrr6yOefrOzs1FXV6djRcaFBFwETz31VEptRHL+D9lKQer4s7jiAAAAAElFTkSuQmCC</thumbnail><stage costume="0" threadsafe="false" id="1"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAAHIklEQVR4nO3dTajcVxkH4LmmloAWSbUgFYrowtJbXfiBIhcdJOZm7uSc3xsXIkIFiwvbRcEkLiyCglKwqKRSu9JSuvALTEmLVLsSShulm1oIxqRatKDNB1Il0YUxuOhcCDHpvcnk5uZOnmczzPzfc87vvzpzmJ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ya8re+y6tJwHgClluTTlpPfnYeucBgGvCcmvKC/0uGABYI0lOVdW/1jsHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABcnf4H70O2R9vtSokAAAAASUVORK5CYII=</pentrails><variables></variables><costumes><list id="3"></list></costumes><sounds><list id="4"></list></sounds><blocks></blocks><scripts></scripts><sprites><sprite name="Sprite" x="0" y="-150" heading="0" scale="1" rotation="1" draggable="true" costume="0" color="80,80,80" id="8"><variables></variables><costumes><list id="10"></list></costumes><sounds><list id="11"></list></sounds><blocks><block-definition s="square" type="command" category="pen"><inputs></inputs><script><block s="doWarp"><script><block s="doRepeat"><l>4</l><script><block s="forward"><l>10</l></block><block s="turn"><l>90</l></block></script></block></script></block></script></block-definition><block-definition s="hex" type="command" category="pen"><inputs></inputs><script><block s="doWarp"><script><block s="doRepeat"><l>6</l><script><block s="forward"><l>7</l></block><block s="turn"><l>60</l></block></script></block></script></block></script></block-definition><block-definition s="star" type="command" category="pen"><inputs></inputs><script><block s="doWarp"><script><block s="doRepeat"><l>5</l><script><block s="forward"><l>15</l></block><block s="turn"><l>144</l></block></script></block></script></block></script></block-definition><block-definition s="vee" type="command" category="looks"><inputs></inputs><script><block s="turnLeft"><l>20</l></block><block s="forward"><l>25</l></block><block s="doRun"><block s="reportListItem"><l>any</l><block var="shapes"/></block><list></list></block><block s="forward"><l>-25</l></block><block s="turn"><l>40</l></block><block s="forward"><l>25</l></block><block s="doRun"><block s="reportListItem"><l>any</l><block var="shapes"/></block><list></list></block><block s="forward"><l>-25</l></block><block s="turnLeft"><l>20</l></block></script></block-definition></blocks><scripts><script x="51" y="47"><block s="receiveGo"></block><block s="clear"></block><block s="up"></block><block s="gotoXY"><l>0</l><l>-150</l></block><block s="down"></block><block s="setHeading"><l>0</l></block><custom-block s="vee" scope="Sprite"></custom-block></script><script x="35" y="243"><block s="receiveKey"><l>up arrow</l></block><block s="doIf"><block s="reportLessThan"><block s="reportListLength"><block var="shapes"/></block><l>4</l></block><script><block s="doAddToList"><block s="reifyScript"><script><custom-block s="vee" scope="Sprite"></custom-block></script><list></list></block><block var="shapes"/></block><block s="doAddToList"><block s="reifyScript"><script><custom-block s="vee" scope="Sprite"></custom-block></script><list></list></block><block var="shapes"/></block></script></block></script><script x="32" y="426.9999999999999"><block s="receiveKey"><l>down arrow</l></block><block s="doIf"><block s="reportGreaterThan"><block s="reportListLength"><block var="shapes"/></block><l>4</l></block><script><block s="doDeleteFromList"><l>last</l><block var="shapes"/></block><block s="doDeleteFromList"><l>last</l><block var="shapes"/></block></script></block></script></scripts></sprite><watcher var="shapes" style="normal" x="336" y="3" color="243,118,29" extX="101" extY="169"/></sprites></stage><blocks></blocks><variables><variable name="shapes"><list id="142"><item><context id="143"><inputs></inputs><variables></variables><script><custom-block s="square" scope="Sprite"></custom-block></script><receiver><ref id="8"></ref></receiver><context id="147"><inputs></inputs><variables></variables><receiver><ref id="8"></ref></receiver></context></context></item><item><context id="149"><inputs></inputs><variables></variables><script><custom-block s="hex" scope="Sprite"></custom-block></script><receiver><ref id="8"></ref></receiver><ref id="147"></ref></context></item><item><context id="153"><inputs></inputs><variables></variables><script><custom-block s="star" scope="Sprite"></custom-block></script><receiver><ref id="8"></ref></receiver><ref id="147"></ref></context></item></list></variable></variables></project>