<snapdata remixID="8630028"><project name="varBlocks" app="Snap! 6, https://snap.berkeley.edu" version="1"><notes>Disclaimer: this project has nothing to do with the Windows VR game developed by Parallel Intersection Studio, which has the same name; I didn&apos;t even know about that game when I titled this project.</notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAFhUlEQVR4Xu3dy0tcdxTA8TO+nxSrRRdqdVMEcRmor1qoEh8FBXHlqkhBCoVuXLj0f3ArLVSarrIpLgxugmVc+EBbqlQpBGtlUDHUxueoU+4FSwbRzDEnHOj93o0gc84PP/PNHUcDxlKpVEq4EHASiBGgkzzHhgIESAiuAgToys/hBEgDrgIE6MrP4QRIA64CBOjKz+EESAOuAgToys/hBEgDrgIE6MrP4QRIA64CBOjKz+EESAOuAgToys/hBEgDrgIE6MrP4QRIA64CBOjKz+EESAOuAgToys/hBEgDrgIE6MrP4QRIA64CBOjKz+EESAOuAgToys/hBEgDrgIE6MrP4QRIA64CBOjKz+EESAOuAgToys/hBEgDrgIE6MrP4QRIA64CBOjKz+EESAOuAgToys/hBEgDrgIE6MrP4QRIA64CBOjKz+EESAOuAgToys/hBEgDrgIE6MrP4QRIA64CkQrw5ORENjY2JJlMSvB3umOxWEYfM32GiouLpampKdzLlZlAZALc3t6WnZ0dqayszExGRFKXSUnEn0phzv1/VD55cSHVj7+U8/Pz8IzGxkapqKjI+JwoPzAyAc7OzkptbW34XN/c/V5/4k9PT6WwsDCthV+f/SiP//pWsl+7oWV/1CFXm89vNfOqY0xe1neGnz88PJTW1tYod5Xx1x6ZAJeWliQ3N1eur69lampK2tvb5fj4WILwCgoKJLhDBnet+vr68C7W1tYmvz17Ir2J7+XmFTX2XpXktnwhqX/2JPnzVBryUes3sv/hZ+HnNjc3ZWhoKOMnIcoPjEyACwsLkpOTE979ZmZmZH5+Xjo7O2VlZSWMbX9/X+LxuHR1dUl1dbU0NDTIH8+fyuf7P6QH2DEqqYMXkox/l9bNy4+/lkT1p+H+ra0tGR4ejnJXGX/tkQlwenpa6urqQpjgzUhRUZGUlZXJ7u6u1NTUhB+vrq7C7xHPzs7k4uJCXsR/kv6DJ/8FGMzG3q+R1OGft4APHn0lO1Vt4eePjo6kt7c34ychyg+MTIDr6+vhO+AgukyvnNSlPEr+ItnZ2feOBOH+/sEncvj3K0kkEtLc3By+lHO9WSAyAQYUwV0uCDH4XvBdXMG74JaWFikpKXkX6/+XOyMVoOYZDF6C8/LyNCM89gECBHgH2uLiooyNjcng4GD4st3f3y+lpaUPIGbkPgECvEdnbm5OJicnw99sBD++ycrKkp6eHqmqqpLu7m7ukAb/tgjwDYgTExOyurp661HBO+UgxJGRkfDHOFwPEyDAe9yWl5dlfHxcgt/xBtfl5WX4MnxzFwx+Zsj1dgIEeIff3t6ejI6Ohr/f7evrk/LychkYGJD8/Py3E2c6TYAA7whibW0tfInV/OcF2tILEKDejAlDAQI0xGSVXoAA9WZMGAoQoCEmq/QCBKg3Y8JQgAANMVmlFyBAvRkThgIEaIjJKr0AAerNmDAUIEBDTFbpBQhQb8aEoQABGmKySi9AgHozJgwFCNAQk1V6AQLUmzFhKECAhpis0gsQoN6MCUMBAjTEZJVegAD1ZkwYChCgISar9AIEqDdjwlCAAA0xWaUXIEC9GROGAgRoiMkqvQAB6s2YMBQgQENMVukFCFBvxoShAAEaYrJKL0CAejMmDAUI0BCTVXoBAtSbMWEoQICGmKzSCxCg3owJQwECNMRklV6AAPVmTBgKEKAhJqv0AgSoN2PCUIAADTFZpRcgQL0ZE4YCBGiIySq9AAHqzZgwFCBAQ0xW6QUIUG/GhKEAARpiskovQIB6MyYMBQjQEJNVegEC1JsxYShAgIaYrNILEKDejAlDAQI0xGSVXoAA9WZMGAoQoCEmq/QCBKg3Y8JQgAANMVmlFyBAvRkThgIEaIjJKr3Av/cQ4bcB8jqhAAAAAElFTkSuQmCC</thumbnail><stage name="Stage" width="480" height="360" costume="0" color="255,255,255,1" tempo="60" threadsafe="false" penlog="false" volume="100" pan="0" lines="round" ternary="false" hyperops="true" codify="false" inheritance="true" sublistIDs="false" scheduled="false" id="1"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAAOhUlEQVR4Xu3VwQkAAAjEMN1/abewn7jAQRC64wgQIECAAIF3gX1fNEiAAAECBAiMAHsCAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQIHLFxAWmhEwHPAAAAAElFTkSuQmCC</pentrails><costumes><list struct="atomic" id="2"></list></costumes><sounds><list struct="atomic" id="3"></list></sounds><variables></variables><blocks></blocks><scripts></scripts><sprites><sprite name="Sprite" idx="1" x="0.855785544622222" y="-1.8547675602308402" heading="90" scale="1" volume="100" pan="0" rotation="1" draggable="true" costume="0" color="80,80,80,1" pen="tip" id="8"><costumes><list struct="atomic" id="9"></list></costumes><sounds><list struct="atomic" id="10"></list></sounds><blocks></blocks><variables></variables><scripts><script x="20" y="10"><custom-block s="variable %s watcher y"><l>tester</l><comment w="183" collapsed="false">I need help with this reporter.</comment></custom-block></script><script x="20" y="67.00000000000003"><custom-block s="change variable %s watcher x by %n"><l></l><l>10</l><comment w="348" collapsed="false">The definitions of these four commands will depend on the reporter.</comment></custom-block></script><script x="20" y="124.00000000000003"><custom-block s="set variable %s watcher x to %n"><l>tester</l><l>0</l><comment w="348" collapsed="false">The definitions of these four commands will depend on the reporter.</comment></custom-block></script><script x="20" y="181.00000000000003"><custom-block s="change variable %s watcher y by %n"><l></l><l>10</l><comment w="348" collapsed="false">The definitions of these four commands will depend on the reporter.</comment></custom-block></script><script x="20" y="238.00000000000003"><custom-block s="set variable %s watcher y to %n"><l></l><l>0</l><comment w="348" collapsed="false">The definitions of these four commands will depend on the reporter.</comment></custom-block></script><script x="20" y="295"><custom-block s="create %s var %mult%txt"><l>global</l><list><custom-block s="var %s"><l></l></custom-block></list><comment w="210" collapsed="false">These blocks were not created by me, but I created the other custom blocks&#xD;(see the Variables palette)</comment></custom-block><custom-block s="delete var %mult%txt"><list><custom-block s="does var %s exist?"><l></l></custom-block></list></custom-block><custom-block s="set var %s to %s"><l></l><l></l></custom-block><custom-block s="show var %s"><l></l></custom-block><custom-block s="hide var %s"><l></l></custom-block></script><script x="237" y="410"><custom-block s="variable %s watcher x"><l>tester</l><comment w="124" collapsed="false">I am still stuck on this one.</comment></custom-block></script></scripts></sprite><watcher var="tester" style="normal" x="173.41267971462707" y="148.66562412291677" color="243,118,29"/></sprites></stage><hidden></hidden><headers></headers><code></code><blocks><block-definition s="show all globals" type="command" category="variables"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doForEach"><l>var</l><block s="evaluate"><block s="reportJSFunction"><list></list><l>return new List(Object.getOwnPropertyNames(this.globalVariables().vars))</l></block><list></list></block><script><block s="doShowVar"><l></l></block></script></block></script></block-definition><block-definition s="hide all globals" type="command" category="variables"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doForEach"><l>var</l><block s="evaluate"><block s="reportJSFunction"><list></list><l>return new List(Object.getOwnPropertyNames(this.globalVariables().vars))</l></block><list></list></block><script><block s="doHideVar"><l></l></block></script></block></script></block-definition><block-definition s="set variable %&apos;var&apos; watcher %&apos;type&apos;" type="command" category="variables"><header></header><code></code><translations></translations><inputs><input type="%s"><options>§_getVarNamesDict</options></input><input type="%s" readonly="true">normal<options>normal&#xD;large&#xD;slider</options></input></inputs><script><block s="doIf"><custom-block s="does var %s exist?"><block var="var"/></custom-block><script><block s="doRun"><block s="reportJSFunction"><list><l>v,t</l></list><l>var watcher = this.findVariableWatcher(v)&#xD;switch(t) {&#xD;case "normal": watcher.styleNormal(); break;&#xD;case "large": watcher.styleLarge(); break;&#xD;case "slider": watcher.styleSlider(); break;&#xD;}</l></block><list><block var="var"/><block var="type"/></list></block></script></block></script></block-definition><block-definition s="variable %&apos;var&apos; slider min" type="reporter" category="variables"><header></header><code></code><translations></translations><inputs><input type="%s"><options>§_getVarNamesDict</options></input></inputs><script><block s="doIf"><custom-block s="does var %s exist?"><block var="var"/></custom-block><script><block s="doReport"><block s="evaluate"><block s="reportJSFunction"><list><l>v</l></list><l>return this.findVariableWatcher(v).sliderMorph.start;</l></block><list><block var="var"/></list></block></block></script></block><block s="doReport"><l>NaN</l></block></script></block-definition><block-definition s="variable %&apos;var&apos; slider max" type="reporter" category="variables"><header></header><code></code><translations></translations><inputs><input type="%s"><options>§_getVarNamesDict</options></input></inputs><script><block s="doIf"><custom-block s="does var %s exist?"><block var="var"/></custom-block><script><block s="doReport"><block s="evaluate"><block s="reportJSFunction"><list><l>v</l></list><l>return this.findVariableWatcher(v).sliderMorph.stop;</l></block><list><block var="var"/></list></block></block></script></block><block s="doReport"><l>NaN</l></block></script></block-definition><block-definition s="set variable %&apos;var&apos; slider min %&apos;val&apos;" type="command" category="variables"><header></header><code></code><translations></translations><inputs><input type="%s"><options>§_getVarNamesDict</options></input><input type="%n"></input></inputs><script><block s="doIf"><custom-block s="does var %s exist?"><block var="var"/></custom-block><script><block s="doRun"><block s="reportJSFunction"><list><l>v,u</l></list><l>this.findVariableWatcher(v).sliderMorph.setStart(u);</l></block><list><block var="var"/><block var="val"/></list></block></script></block></script></block-definition><block-definition s="set variable %&apos;var&apos; slider max %&apos;val&apos;" type="command" category="variables"><header></header><code></code><translations></translations><inputs><input type="%s"><options>§_getVarNamesDict</options></input><input type="%n"></input></inputs><script><block s="doIf"><custom-block s="does var %s exist?"><block var="var"/></custom-block><script><block s="doRun"><block s="reportJSFunction"><list><l>v,u</l></list><l>this.findVariableWatcher(v).sliderMorph.setStop(u);</l></block><list><block var="var"/><block var="val"/></list></block></script></block></script></block-definition><block-definition s="move variable %&apos;var&apos; watcher to x: %&apos;x&apos; y: %&apos;y&apos;" type="command" category="variables"><header></header><code></code><translations></translations><inputs><input type="%s"><options>§_getVarNamesDict</options></input><input type="%n">0</input><input type="%n">0</input></inputs><script><block s="doIf"><custom-block s="does var %s exist?"><block var="var"/></custom-block><script><block s="doRun"><block s="reportJSFunction"><list><l>v,x,y</l></list><l>var watcher = this.findVariableWatcher(v)&#xD;&#xD;//Copied from SpriteMorph&apos;s gotoXY method&#xD;&#xD;var stage = this.parentThatIsA(StageMorph),&#xD;  newX,&#xD;  newY,&#xD;  dest;&#xD;&#xD;if(!stage) {return;}&#xD;x = !isFinite(+x) ? 0 : +x;&#xD;y = !isFinite(+y) ? 0 : +y;&#xD;newX = stage.center().x + x * stage.scale;&#xD;newY = stage.center().y - y * stage.scale;&#xD;dest = new Point(newX, newY).subtract(watcher.extent().divideBy(2));&#xD;watcher.setPosition(dest)</l></block><list><block var="var"/><block var="x"/><block var="y"/></list></block></script></block></script></block-definition><block-definition s="change variable %&apos;var&apos; watcher x by %&apos;delta&apos;" type="command" category="variables"><header></header><code></code><translations></translations><inputs><input type="%s"><options>§_getVarNamesDict</options></input><input type="%n">10</input></inputs><script><block s="doIf"><l/><script><block s="doRun"><block s="reportJSFunction"><list></list><l>alert("Work in Progress")</l></block><list></list></block></script></block></script><scripts><script x="10" y="135.99999999999983"><custom-block s="move variable %s watcher to x: %n y: %n"><block var="var"/><block s="reportSum"><custom-block s="variable %s watcher x"><block var="var"/></custom-block><block var="delta"/></block><custom-block s="variable %s watcher y"><block var="var"/></custom-block></custom-block></script></scripts></block-definition><block-definition s="set variable %&apos;var&apos; watcher x to %&apos;x&apos;" type="command" category="variables"><header></header><code></code><translations></translations><inputs><input type="%s"><options>§_getVarNamesDict</options></input><input type="%n">0</input></inputs><script><block s="doIf"><l/><script><block s="doRun"><block s="reportJSFunction"><list></list><l>alert("Work in Progress")</l></block><list></list></block></script></block></script><scripts><script x="10" y="136"><custom-block s="move variable %s watcher to x: %n y: %n"><block var="var"/><block var="x"/><custom-block s="variable %s watcher y"><block var="var"/></custom-block></custom-block></script></scripts></block-definition><block-definition s="change variable %&apos;var&apos; watcher y by %&apos;delta&apos;" type="command" category="variables"><header></header><code></code><translations></translations><inputs><input type="%s"><options>§_getVarNamesDict</options></input><input type="%n">10</input></inputs><script><block s="doIf"><l/><script><block s="doRun"><block s="reportJSFunction"><list></list><l>alert("Work in Progress")</l></block><list></list></block></script></block></script><scripts><script x="10" y="136"><custom-block s="move variable %s watcher to x: %n y: %n"><block var="var"/><custom-block s="variable %s watcher x"><block var="var"/></custom-block><block s="reportSum"><custom-block s="variable %s watcher y"><block var="var"/></custom-block><block var="delta"/></block></custom-block></script></scripts></block-definition><block-definition s="set variable %&apos;var&apos; watcher y to %&apos;y&apos;" type="command" category="variables"><header></header><code></code><translations></translations><inputs><input type="%s"><options>§_getVarNamesDict</options></input><input type="%n">0</input></inputs><script><block s="doIf"><l/><script><block s="doRun"><block s="reportJSFunction"><list></list><l>alert("Work in Progress")</l></block><list></list></block></script></block></script><scripts><script x="10" y="136"><custom-block s="move variable %s watcher to x: %n y: %n"><block var="var"/><custom-block s="variable %s watcher x"><block var="var"/></custom-block><block var="y"/></custom-block></script></scripts></block-definition><block-definition s="variable %&apos;var&apos; watcher x" type="reporter" category="variables"><comment x="0" y="0" w="178" collapsed="false">This solution was provided by @sathvikrias and slightly modified.&#xD;https://forum.snap.berkeley.edu/t/workarounds-for-blocks-snap-doesnt-have/991/87</comment><header></header><code></code><translations></translations><inputs><input type="%s"><options>§_getVarNamesDict</options></input></inputs><script><block s="doReport"><block s="evaluate"><block s="reportJSFunction"><list><l>v,ex</l></list><l>if(!ex){return NaN}&#xD;var watcher = this.findVariableWatcher(v), stage = this.parentThatIsA(StageMorph);&#xD;if(!stage){return}&#xD;&#xD;wPosX = watcher.position().x; function SEE(x, c) {alert(x + "\n" + c); return x;}&#xD;return ((wPosX - stage.center().x) / stage.scale) + watcher.extent().divideBy(2).x;</l></block><list><block var="var"/><custom-block s="does var %s exist?"><block var="var"/></custom-block></list></block></block></script></block-definition><block-definition s="variable %&apos;var&apos; watcher y" type="reporter" category="variables"><header></header><code></code><translations></translations><inputs><input type="%s"><options>§_getVarNamesDict</options></input></inputs><script><block s="doReport"><block s="evaluate"><block s="reportJSFunction"><list><l>v,ex</l></list><l>if(!ex){return NaN}&#xD;var watcher = this.findVariableWatcher(v), stage = this.parentThatIsA(StageMorph)&#xD;if(!stage){return}&#xD;&#xD;var wPosY = watcher.position().Y&#xD;return "Work in Progress";</l></block><list><block var="var"/><l></l></list></block></block></script></block-definition><block-definition s="swap %&apos;a&apos; ⇄ %&apos;b&apos;" type="command" category="variables"><header></header><code></code><translations></translations><inputs><input type="%s"><options>§_getVarNamesDict</options></input><input type="%s"><options>§_getVarNamesDict</options></input></inputs><script><block s="doIf"><block s="reportAnd"><custom-block s="does var %s exist?"><block var="a"/></custom-block><custom-block s="does var %s exist?"><block var="b"/></custom-block></block><script><block s="doRun"><block s="reifyScript"><script><block s="doDeclareVariables"><list><l>temp</l></list></block><block s="doSetVar"><l>temp</l><l></l></block><block s="doSetVar"><l></l><l></l></block><block s="doSetVar"><l></l><block var="temp"/></block></script><list></list></block><list><block var="a"/><block var="b"/></list></block></script></block></script></block-definition><block-definition s="create %&apos;scope&apos; var %&apos;names&apos;" type="command" category="variables"><comment x="0" y="0" w="146" collapsed="false">This block creates  new variables on the selected scope: global (for all sprites), sprite (for this sprite only) or script (only for that blocks stack) with the names given (in &apos;names&apos; list).&#xD;&#xD;If there is already a variable with that name in that scope, it does nothing: no errors and no overwrites.</comment><header></header><code></code><translations>pt:cria as variáveis _ _&#xD;ca:crea les _ variables _&#xD;es:crear las _ variables _&#xD;de:erstellen _ var _&#xD;</translations><inputs><input type="%s" readonly="true">global<options>global&#xD;sprite&#xD;script</options></input><input type="%mult%txt"></input></inputs><script><block s="doIfElse"><block s="reportEquals"><block var="scope"/><l>script</l></block><script><block s="doForEach"><l>each item</l><block var="names"/><script><block s="doRun"><block s="reportJSFunction"><list><l>varName</l><l>proc</l></list><l>if ((typeof varName) != "string" || varName === "") {&#xD;    throw new Error("name isn&apos;t a string: " + varName);&#xD;}&#xD;if (!proc.homeContext.variables.vars[varName]) proc.homeContext.variables.addVar(varName);</l></block><list><block var="each item"/></list></block></script></block></script><script><block s="doDeclareVariables"><list><l>global</l></list></block><block s="doIfElse"><block s="reportEquals"><block var="scope"/><l>sprite</l></block><script><block s="doSetVar"><l>global</l><block s="reportBoolean"><l><bool>false</bool></l></block></block></script><script><block s="doSetVar"><l>global</l><block s="reportBoolean"><l><bool>true</bool></l></block></block></script></block><block s="doForEach"><l>each item</l><block var="names"/><script><block s="doRun"><block s="reportJSFunction"><list><l>varName</l><l>global</l><l>proc</l></list><l>if ((typeof varName) != "string" || varName === "") {&#xD;    throw new Error("name isn&apos;t a string: " + varName);&#xD;}&#xD;if (global &amp;&amp; !proc.homeContext.variables.parentFrame.parentFrame.vars[varName]) this.addVariable(varName, true);&#xD;if (!global &amp;&amp; !proc.homeContext.variables.parentFrame.vars[varName]) this.addVariable(varName, false);</l></block><list><block var="each item"/><block var="global"/></list></block></script></block><block s="doRun"><block s="reportJSFunction"><list></list><l>var ide = this.parentThatIsA(IDE_Morph);&#xD;ide.flushBlocksCache(&apos;variables&apos;); // b/c of inheritance&#xD;ide.refreshPalette();</l></block><list></list></block></script></block></script></block-definition><block-definition s="delete var %&apos;names&apos;" type="command" category="variables"><comment x="0" y="0" w="217" collapsed="false">This block deletes all the variables with the names given (inside input list).&#xD;&#xD;Each name will make only one variable deletion, and this will be the variable found following the scope order: &apos;script&apos; -&gt; &apos;sprite&apos; -&gt; &apos;global&apos;.&#xD;&#xD;If we have a &quot;testing&quot; sprite variable and also a &quot;testing&quot; global one, deleting &quot;testing&quot; will delete only the sprite one (Yes! we can also do &quot;delete var (testing, testing)&quot; to delete both.&#xD;&#xD;If one variable does not exists (in any scope) an error happens, stopping block action in that point. You can check it before with the &quot;does var (name) exists?&quot;block. </comment><header></header><code></code><translations>pt:remove as variáveis _&#xD;ca:esborra les variables _&#xD;es:borrar variables _&#xD;de:löschen var _&#xD;</translations><inputs><input type="%mult%txt"></input></inputs><script><block s="doForEach"><l>each item</l><block var="names"/><script><block s="doRun"><block s="reportJSFunction"><list><l>varName</l><l>proc</l></list><l>if ((typeof varName) != "string" || varName === "") {&#xD;    throw new Error("name isn&apos;t a string: " + varName);&#xD;}&#xD;if (typeof proc.homeContext.variables.vars[varName] !== &apos;undefined&apos;) {&#xD;    delete proc.homeContext.variables.vars[varName];&#xD;} else if (this.deletableVariableNames().indexOf(varName) != -1) {&#xD;    this.deleteVariable(varName);&#xD;} else {&#xD;    throw new Error("variable doesn&apos;t exist: " + varName);&#xD;}</l></block><list><block var="each item"/></list></block></script></block><block s="doRun"><block s="reportJSFunction"><list></list><l>var ide = this.parentThatIsA(IDE_Morph);&#xD;ide.flushBlocksCache(&apos;variables&apos;); // b/c of inheritance&#xD;ide.refreshPalette();</l></block><list></list></block></script></block-definition><block-definition s="set var %&apos;name&apos; to %&apos;value&apos;" type="command" category="variables"><comment x="0" y="0" w="240.4931640625" collapsed="false">This block sets the given value (last input) to the variable named with the name givent (var input).&#xD;&#xD;It looks for that variable following the scope order &apos;script&apos; -&gt; &apos;sprite&apos; -&gt; &apos;global&apos; (the first match it finds).&#xD;&#xD;If that variable does not exist (in any scope) an error happens, stopping their script. You can check it before using the &quot;does var (name) exists?&quot; block. </comment><header></header><code></code><translations>ca:assigna a _ el valor _&#xD;es:asignar a _ el valor _&#xD;pt:altera _ para _&#xD;de:setze var _ auf _&#xD;</translations><inputs><input type="%s"><options>§_getVarNamesDict</options></input><input type="%s"></input></inputs><script><block s="doRun"><block s="reportJSFunction"><list><l>varName</l><l>value</l><l>proc</l></list><l>if ((typeof varName) != "string") {&#xD;    throw new Error("name isn&apos;t a string: " + varName);&#xD;}&#xD;proc.homeContext.variables.setVar(varName, value);</l></block><list><block var="name"/><block var="value"/></list></block></script></block-definition><block-definition s="var %&apos;name&apos;" type="reporter" category="variables"><comment x="0" y="0" w="178.00000000000003" collapsed="false">This block reports the value of the variable with the name given.&#xD;&#xD;It looks for that variable following the scope order &apos;script&apos; -&gt; &apos;sprite&apos; -&gt; &apos;global&apos; (the first match it finds).&#xD;&#xD;If that variable does not exist (in any scope) an error happens, stopping their script. You can check it before using the &quot;does var (name) exists?&quot; block. </comment><header></header><code></code><translations>pt:o valor de _&#xD;</translations><inputs><input type="%s"><options>§_getVarNamesDict</options></input></inputs><script><block s="doReport"><block s="evaluate"><block s="reportJSFunction"><list><l>varName</l><l>proc</l></list><l>if ((typeof varName) != "string") {&#xD;    throw new Error("name isn&apos;t a string: " + varName);&#xD;}&#xD;return proc.homeContext.variables.getVar(varName);</l></block><list><block var="name"/></list></block></block></script></block-definition><block-definition s="does var %&apos;name&apos; exist?" type="predicate" category="variables"><comment x="0" y="0" w="146" collapsed="false">This block reports &quot;true&quot; if there is a variable with this given name (input slot) in that context.&#xD;&#xD;It can be a global, sprite or script variable.&#xD;&#xD;Otherwise it reports &quot;false&quot;.</comment><header></header><code></code><translations>pt:a variável _ existe&#xD;ca:existeix la variable _ ?&#xD;es:existe la variable _ ?&#xD;de:existiert var _ ?&#xD;</translations><inputs><input type="%s"></input></inputs><script><block s="doReport"><block s="evaluate"><block s="reportJSFunction"><list><l>varName</l><l>proc</l></list><l>if ((typeof varName) != "string" || varName === "") {&#xD;    throw new Error("name isn&apos;t a string: " + varName);&#xD;}&#xD;return proc.homeContext.variables.silentFind(varName)? true:false;</l></block><list><block var="name"/></list></block></block></script></block-definition><block-definition s="show var %&apos;name&apos;" type="command" category="variables"><comment x="0" y="0" w="181" collapsed="false">This block turns on (show) the watcher view on stage (if it was not already activated) of the variable with the given name (slot input).&#xD;&#xD;It can only access to the closest variable scope (if there different variables with the same name in different scopes) following the order &apos;script&apos; -&gt; &apos;sprite&apos; -&gt; &apos;global&apos;.&#xD;&#xD;No errors if that variable does not exist.</comment><header></header><code></code><translations>ca:mostra la variable _&#xD;es:mostrar variable _&#xD;pt:mostra a variável _&#xD;de:zeige var _&#xD;</translations><inputs><input type="%s"><options>§_getVarNamesDict</options></input></inputs><script><block s="doIf"><custom-block s="does var %s exist?"><block var="name"/></custom-block><script><block s="doRun"><block s="reportJSFunction"><list><l>varName</l><l>proc</l></list><l>    var varFrame = proc.homeContext.variables,&#xD;        stage,&#xD;        watcher,&#xD;        target,&#xD;        label,&#xD;        others,&#xD;        isGlobal,&#xD;        name = varName;&#xD;&#xD;    if (name instanceof Context) {&#xD;        if (name.expression.selector === &apos;reportGetVar&apos;) {&#xD;            name = name.expression.blockSpec;&#xD;        } else {&#xD;            proc.doChangePrimitiveVisibility(name.expression, false);&#xD;            return;&#xD;        }&#xD;    }&#xD;    if (proc.homeContext.receiver) {&#xD;        stage = proc.homeContext.receiver.parentThatIsA(StageMorph);&#xD;        if (stage) {&#xD;            target = varFrame.silentFind(name);&#xD;            if (!target) {return; }&#xD;            // first try to find an existing (hidden) watcher&#xD;            watcher = detect(&#xD;                stage.children,&#xD;                morph =&gt; morph instanceof WatcherMorph &amp;&amp;&#xD;                    morph.target === target &amp;&amp;&#xD;                        morph.getter === name&#xD;            );&#xD;            if (watcher !== null) {&#xD;                watcher.show();&#xD;                watcher.fixLayout(); // re-hide hidden parts&#xD;                return;&#xD;            }&#xD;            // if no watcher exists, create a new one&#xD;            isGlobal = contains(&#xD;                proc.homeContext.receiver.globalVariables().names(),&#xD;                varName&#xD;            );&#xD;            if (isGlobal || target.owner) {&#xD;                label = name;&#xD;            } else {&#xD;                label = name + &apos; &apos; + localize(&apos;(temporary)&apos;);&#xD;            }&#xD;            watcher = new WatcherMorph(&#xD;                label,&#xD;                SpriteMorph.prototype.blockColor.variables,&#xD;                target,&#xD;                name&#xD;            );&#xD;            watcher.setPosition(stage.position().add(10));&#xD;            others = stage.watchers(watcher.left());&#xD;            if (others.length &gt; 0) {&#xD;                watcher.setTop(others[others.length - 1].bottom());&#xD;            }&#xD;            stage.add(watcher);&#xD;            watcher.fixLayout();&#xD;        }&#xD;    }</l></block><list><block var="name"/></list></block></script></block></script></block-definition><block-definition s="hide var %&apos;name&apos;" type="command" category="variables"><comment x="0" y="0" w="181" collapsed="false">This block turns off (hide) the watcher view on stage (if it was not already activated) of the variable with the given name (slot input).&#xD;&#xD;It can only access to the closest variable scope (if there different variables with the same name in different scopes) following the order &apos;script&apos; -&gt; &apos;sprite&apos; -&gt; &apos;global&apos;.&#xD;&#xD;No errors if that variable does not exist.</comment><header></header><code></code><translations>ca:amaga la variable _&#xD;es:esconder variable _&#xD;pt:esconde a variável _&#xD;de:verstecke var _&#xD;</translations><inputs><input type="%s"><options>§_getVarNamesDict</options></input></inputs><script><block s="doIf"><custom-block s="does var %s exist?"><block var="name"/></custom-block><script><block s="doRun"><block s="reportJSFunction"><list><l>varName</l><l>proc</l></list><l>    // to delete all temporary watchers, use the primitive "hide" with no inputs&#xD;    var varFrame = proc.homeContext.variables,&#xD;        stage,&#xD;        watcher,&#xD;        target,&#xD;        name = varName;&#xD;&#xD;    if (name instanceof Context) {&#xD;        if (name.expression.selector === &apos;reportGetVar&apos;) {&#xD;            name = name.expression.blockSpec;&#xD;        } else {&#xD;            proc.doChangePrimitiveVisibility(name.expression, true);&#xD;            return;&#xD;        }&#xD;    }&#xD;    if (!name) {&#xD;        proc.doRemoveTemporaries();&#xD;        return;&#xD;    }&#xD;    if (proc.homeContext.receiver) {&#xD;        stage = proc.homeContext.receiver.parentThatIsA(StageMorph);&#xD;        if (stage) {&#xD;            target = varFrame.find(name);&#xD;            watcher = detect(&#xD;                stage.children,&#xD;                morph =&gt; morph instanceof WatcherMorph &amp;&amp;&#xD;                    morph.target === target &amp;&amp;&#xD;                        morph.getter === name&#xD;            );&#xD;            if (watcher !== null) {&#xD;                if (watcher.isTemporary()) {&#xD;                    watcher.destroy();&#xD;                } else {&#xD;                    watcher.hide();&#xD;                }&#xD;            }&#xD;        }&#xD;    }&#xD;</l></block><list><block var="name"/></list></block></script></block></script></block-definition><block-definition s="finalize variable %&apos;v&apos;" type="command" category="variables"><header></header><code></code><translations></translations><inputs><input type="%s"><options>§_getVarNamesDict</options></input></inputs><script><block s="doRun"><block s="reportJSFunction"><list><l>v</l></list><l>if ((typeof v) != "string") {&#xD;   throw new Error("name isn&apos;t a string: " + v);&#xD;}&#xD;var oldSetVar = VariableFrame.prototype.setVar;&#xD;function newSetVar(name, value, sender) {&#xD;  if(name == v) {return;}&#xD;  oldSetVar(name, value, sender);&#xD;}&#xD;VariableFrame.prototype.setVar = newSetVar;</l></block><list><block var="v"/></list></block></script></block-definition></blocks><variables><variable name="tester"><l>0</l></variable></variables></project><media name="varBlocks" app="Snap! 6, https://snap.berkeley.edu" version="1"></media></snapdata>