-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
74 lines (74 loc) · 30.5 KB
/
main.blocks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable type="KIND_SpriteKind" id="AXrP366ByIF;]{kcA!j-">Player</variable><variable type="KIND_SpriteKind" id="3l-~E/IE)50R!ep{n=Ds">Projectile</variable><variable type="KIND_SpriteKind" id="@P03$,bK{m),=iA*S-p7">Food</variable><variable type="KIND_SpriteKind" id="Z/DOf^MoloV?8)7qSYHd">Enemy</variable><variable id="^WY1cxW$0WMkm5o~6o;H">speedY</variable><variable id="RkFtZavFa5:j^Re5*FIQ">speedX</variable><variable id="WqbX(Q#umbMV]$O(N;j*">mySprite</variable><variable id="A][2^.$@*g:ja)g^V{IZ">growth</variable><variable id="7|P7L.hJ)TsFJwv1k:L;">snake</variable><variable id="^KHgy3to-BK4u%gw=cYK">x</variable><variable id="Vhta$c{IXfAGy1vPH!{o">y</variable><variable id="$;$!=$%nCe!Hu[{?d1+P">isEmptyPosition</variable><variable id="7,7VF7%:bfIe~**yVl=R">value</variable></variables><block type="pxt-on-start" id="fKv18yR$qni?)Oq*=(4e" x="0" y="0"><statement name="HANDLER"><block type="variables_set" id="q;};_pM4yE|xZp=)aYQm"><field name="VAR" id="WqbX(Q#umbMV]$O(N;j*">mySprite</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="spritescreate" id="}H6luiQ~({W-ghVuel0N"><value name="img"><shadow type="screen_image_picker" id="6?4zCQOAX5zp(dRuF@eS"><field name="img">img`
. . 7 7 7 7 7 7 7 7 7 7 7 7 . .
. 7 7 7 7 7 7 7 7 7 7 7 7 7 7 .
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
. 7 7 7 7 7 7 7 7 7 7 7 7 7 7 .
. . 7 7 7 7 7 7 7 7 7 7 7 7 . .
`</field><data>{"commentRefs":[],"fieldData":{"img":"6?4zCQOAX5zp(dRuF@eS"}}</data></shadow></value><value name="kind"><shadow type="spritekind" id="Sbqik5MTo~QKhgJz@WzH"><field name="MEMBER">Player</field></shadow></value></block></value><next><block type="spritesetsetflag" id="`T?x=qbUr=QwnjW@N7P6"><field name="flag">SpriteFlag.AutoDestroy</field><value name="sprite"><block type="variables_get" id="p^Oe[6no/CrQJjomL9fJ"><field name="VAR" id="WqbX(Q#umbMV]$O(N;j*">mySprite</field></block></value><value name="on"><shadow type="toggleOnOff" id="exMiV3]}ZTJG1FaYTeB9"><field name="on">true</field></shadow></value><next><block type="spritesetpos" id="*60vwo~6S[|NyvxA~hpz"><value name="sprite"><block type="variables_get" id="Y,uQ;A92{mPv*^;d+v!Q"><field name="VAR" id="WqbX(Q#umbMV]$O(N;j*">mySprite</field></block></value><value name="x"><shadow type="positionPicker" id="{o7M[rqibI0p*C^YX{{K"><field name="index">8</field></shadow></value><value name="y"><shadow type="positionPicker" id=";Crt^$=JGI#gmfpxFIVY"><field name="index">8</field></shadow></value><next><block type="array_push" id="+xVAxw{3/`T9Y?dTDke4"><value name="list"><block type="variables_get" id="D5A8#xg*BRkN.iIPkzpb"><field name="VAR" id="7|P7L.hJ)TsFJwv1k:L;">snake</field></block></value><value name="value"><block type="variables_get" id="(d}*))vZM_-qV0VE?i)$"><field name="VAR" id="WqbX(Q#umbMV]$O(N;j*">mySprite</field></block></value><next><block type="variables_set" id=",{8W{bMUall9kODg*5Ig"><field name="VAR" id="WqbX(Q#umbMV]$O(N;j*">mySprite</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="spritescreate" id="^k-#:,Jrtb/Sz:F7w4PN"><value name="img"><shadow type="screen_image_picker" id="ap2{iJo5gYpK^Avk~7X="><field name="img">img`
. . 7 7 7 7 7 7 7 7 7 7 7 7 . .
. 7 7 7 7 7 7 7 7 7 7 7 7 7 7 .
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
. 7 7 7 7 7 7 7 7 7 7 7 7 7 7 .
. . 7 7 7 7 7 7 7 7 7 7 7 7 . .
`</field><data>{"commentRefs":[],"fieldData":{"img":"ap2{iJo5gYpK^Avk~7X="}}</data></shadow></value><value name="kind"><shadow type="spritekind" id="!Vw_fD(jO/vTl^j_l2ly"><field name="MEMBER">Player</field></shadow></value></block></value><next><block type="spritesetsetflag" id="c_wR%hS#:cm%8w~YtQp."><field name="flag">SpriteFlag.AutoDestroy</field><value name="sprite"><block type="variables_get" id="de;@O3.rl1]vxi_-3f`4"><field name="VAR" id="WqbX(Q#umbMV]$O(N;j*">mySprite</field></block></value><value name="on"><shadow type="toggleOnOff" id="J9KG%`3*poRjEEOun0O!"><field name="on">true</field></shadow></value><next><block type="spritesetpos" id="eLS{-wuOB|C.:BHo06.A"><value name="sprite"><block type="variables_get" id="z,pQ8#dxgPL*9Q$^!6@Y"><field name="VAR" id="WqbX(Q#umbMV]$O(N;j*">mySprite</field></block></value><value name="x"><shadow type="positionPicker" id="N[@fy-,2dS}]0wF~.%dK"><field name="index">24</field></shadow></value><value name="y"><shadow type="positionPicker" id="DJ}_W0Qh:`BWcy]#^2WU"><field name="index">8</field></shadow></value><next><block type="array_push" id="tx=)%i!WBlmqzn2Oy7sh"><value name="list"><block type="variables_get" id="pVdFz[nNa-)U@ny00u7C"><field name="VAR" id="7|P7L.hJ)TsFJwv1k:L;">snake</field></block></value><value name="value"><block type="variables_get" id="MQzlV4V1%W_i/i_:CufK"><field name="VAR" id="WqbX(Q#umbMV]$O(N;j*">mySprite</field></block></value><next><block type="variables_set" id="Uv$q8/wL%uIp#mkgB}Xg"><field name="VAR" id="RkFtZavFa5:j^Re5*FIQ">speedX</field><value name="VALUE"><shadow type="math_number" id="HGaKdT)|jNCKP?9F^/yO"><field name="NUM">1</field></shadow></value><next><block type="variables_set" id="R)^,nC#!xENqHw5vkT.Z"><field name="VAR" id="^WY1cxW$0WMkm5o~6o;H">speedY</field><value name="VALUE"><shadow type="math_number" id="G3Vl%dH]Jn8vj@S:[zsz"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="N]/1in.wU26)edh+Z3^i"><field name="VAR" id="A][2^.$@*g:ja)g^V{IZ">growth</field><value name="VALUE"><shadow type="math_number" id="3/y`2:f+eHVaL+{rk25n"><field name="NUM">0</field></shadow></value><next><block type="function_call" id="_R+w;oDy,7dXN@!A2/4?"><mutation name="spawnFood" functionid="%mGQmc^?`$2Ol:~^g88C"></mutation><next><block type="hudsetScore" id="O+#F~~5A-iSY[FV;W4MU"><value name="value"><shadow type="math_number" id="Fjak)dnOuT/p)=S%8yq+"><field name="NUM">0</field></shadow></value><next><block type="device_pause" id="J!1T%m-5O7qq(,Icw.CV"><value name="pause"><shadow type="timePicker" id="$Li9r6]oYfEx]IP#@Y^n"><field name="ms">2000</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="function_definition" id="njk=AcBrHG*/8{f55Vda" x="634" y="0"><mutation name="spawnFood" functionid="%mGQmc^?`$2Ol:~^g88C"></mutation><field name="function_name">spawnFood</field><statement name="STACK"><block type="variables_set" id="9uQ`5VC}R:T2+v5@28@x"><field name="VAR" id="WqbX(Q#umbMV]$O(N;j*">mySprite</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="spritescreate" id="|[PW)t9m4wUaI7ont|J]"><value name="img"><shadow type="screen_image_picker"><field name="img">img`
c c c c c c c c
c 2 2 2 2 2 2 c
c 2 2 2 2 2 2 c
c 2 2 2 2 2 2 c
c 2 2 2 2 2 2 c
c 2 2 2 2 2 2 c
c 2 2 2 2 2 2 c
c c c c c c c c
`</field></shadow><block type="screen_image_picker" id="@KY7f.B54g?Mns*YD[Ug"><field name="img">img`
. . 2 2 2 2 2 2 2 2 2 2 2 2 . .
. 2 2 2 2 2 2 2 2 2 2 2 2 2 2 .
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
. 2 2 2 2 2 2 2 2 2 2 2 2 2 2 .
. . 2 2 2 2 2 2 2 2 2 2 2 2 . .
`</field><data>{"commentRefs":[],"fieldData":{"img":"@KY7f.B54g?Mns*YD[Ug"}}</data></block></value><value name="kind"><shadow type="spritekind" id="%maO_?LlZV:[KB$3OR0y"><field name="MEMBER">Food</field></shadow></value></block></value><next><block type="variables_set" id="F2TD-b2rr/0pjI]kgL9J"><field name="VAR" id="$;$!=$%nCe!Hu[{?d1+P">isEmptyPosition</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="logic_boolean" id="GNJIcw}QBwjknI^wZA;/"><field name="BOOL">FALSE</field></block></value><next><block type="device_while" id="t{DI{fpy9q~-K@wGL2!~"><value name="COND"><shadow type="logic_boolean"><field name="BOOL">FALSE</field></shadow><block type="logic_negate" id="!_#|`T`*oaqP9*Db3Jh_"><value name="BOOL"><block type="variables_get" id="P8CfbHD?##!NHCr(`Zg!"><field name="VAR" id="$;$!=$%nCe!Hu[{?d1+P">isEmptyPosition</field></block></value></block></value><statement name="DO"><block type="variables_set" id="9Zr}){E/09_=X*NBXj`8"><field name="VAR" id="^KHgy3to-BK4u%gw=cYK">x</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="I4/FHFeu/B=1=AP,{PDx"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="Q84t*ooC//_jJNZs}KHT"><field name="NUM">8</field></shadow></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="tZkBy]K62wM[}MBuylvs"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number" id="i!F6-79O?n)+#X?{v4eB"><field name="NUM">16</field></shadow></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_random" id="[*abBo?~(OQ^(b#GSl?m"><value name="min"><shadow type="math_number" id="FuL,%E=:~#wD$=8(;1Aw"><field name="NUM">0</field></shadow></value><value name="limit"><shadow type="math_number" id="Q+*snpWX}X7/T$MU0Ns~"><field name="NUM">9</field></shadow></value></block></value></block></value></block></value><next><block type="variables_set" id="8GGTD1+-lC?]#~0FaCZL"><field name="VAR" id="Vhta$c{IXfAGy1vPH!{o">y</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="^K;2:{oI:}93NmC*hSw0"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="Dz}D||.5^BJA2fv[3)@c"><field name="NUM">8</field></shadow></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="gCmMj@L[e6ebZ^){AWKq"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number" id="d.F;v(N.,V^h%GaL/ue("><field name="NUM">15</field></shadow></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_random" id="(Uxo3P[,{gE8uS}]:7K]"><value name="min"><shadow type="math_number" id="e%H}O=z*jCsu59+GD1t:"><field name="NUM">0</field></shadow></value><value name="limit"><shadow type="math_number" id="(1(IA?/r!}j6sRB@dW=d"><field name="NUM">7</field></shadow></value></block></value></block></value></block></value><next><block type="variables_set" id="snfEhmLn:JifFu?^+_a*"><field name="VAR" id="$;$!=$%nCe!Hu[{?d1+P">isEmptyPosition</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="logic_boolean" id="Vl]`wF*;p*.f--DC}r/Q"><field name="BOOL">TRUE</field></block></value><next><block type="pxt_controls_for_of" id="e`*T0:JxK~U$(*uRu5R)"><value name="VAR"><shadow type="variables_get_reporter" id="2lC#;m|)MXG^X04K_apt"><field name="VAR" id="7,7VF7%:bfIe~**yVl=R">value</field></shadow></value><value name="LIST"><shadow type="variables_get" id="1D,KI.Z@l{YwI0ll.lPS"><field name="VAR" id="7|P7L.hJ)TsFJwv1k:L;">snake</field></shadow></value><statement name="DO"><block type="controls_if" id="[OF[WBq.h9c~-#n)Dxrl"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_operation" id="vMyC]_Kf1TVg9:53%TN/"><field name="OP">AND</field><value name="A"><block type="logic_compare" id=";h]8+xu#@M7~{Oq!.`id"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="P_g/U~F:5n8X{C#1Mx^g"><field name="VAR" id="^KHgy3to-BK4u%gw=cYK">x</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="Sprite_blockCombine_get" id=":F~mYKnk/cxI-u^[q`3x"><field name="property">Sprite.x</field><value name="mySprite"><block type="variables_get" id="$9Nt!4b$B@cFa)F[i~BJ"><field name="VAR" id="7,7VF7%:bfIe~**yVl=R">value</field></block></value></block></value></block></value><value name="B"><block type="logic_compare" id="$riJKtC@^hPeYYXZr7LW"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="CtZ?eD[bNmnZRjYocWuQ"><field name="VAR" id="Vhta$c{IXfAGy1vPH!{o">y</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="Sprite_blockCombine_get" id="qJ#|8`9t-]w+9v+~k:O!"><field name="property">Sprite.y</field><value name="mySprite"><block type="variables_get" id="Y]EwUT@s7}A*5vy,B7BT"><field name="VAR" id="7,7VF7%:bfIe~**yVl=R">value</field></block></value></block></value></block></value></block></value><statement name="DO0"><block type="variables_set" id="BKbgeDwm(0w~s6jRaQ-K"><field name="VAR" id="$;$!=$%nCe!Hu[{?d1+P">isEmptyPosition</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="logic_boolean" id="ljoP73s;zY9Q*b}7t@Mo"><field name="BOOL">FALSE</field></block></value></block></statement></block></statement></block></next></block></next></block></next></block></statement><next><block type="spritesetpos" id="%xg(*%,jz)iDK*L.Ihl["><value name="sprite"><block type="variables_get" id="W!E$~kuH^b*pw@^sJ[)V"><field name="VAR" id="WqbX(Q#umbMV]$O(N;j*">mySprite</field></block></value><value name="x"><shadow type="positionPicker"><field name="index">0</field></shadow><block type="variables_get" id="+D]suFTSR3r{]AOP(e:,"><field name="VAR" id="^KHgy3to-BK4u%gw=cYK">x</field></block></value><value name="y"><shadow type="positionPicker"><field name="index">0</field></shadow><block type="variables_get" id="9v|$rcK540Wxc31)Jk,8"><field name="VAR" id="Vhta$c{IXfAGy1vPH!{o">y</field></block></value></block></next></block></next></block></next></block></statement></block><block type="forever" id="cY;ByWV:EX-=,9q({*I*" x="1765" y="0"><statement name="HANDLER"><block type="controls_if" id="eOR[Kc!@dtlt2{7+QA+I"><mutation else="1"></mutation><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="]G9DlsU9()[X^}1@5lR`"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id=":h7$Un#!eh?^9#%qIOfM"><field name="VAR" id="A][2^.$@*g:ja)g^V{IZ">growth</field></block></value><value name="B"><shadow type="math_number" id="H@TjZ(d/:oO%U-.O0lQ;"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="3f*z?KVbeuqvSpM|7kec"><field name="VAR" id="WqbX(Q#umbMV]$O(N;j*">mySprite</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="array_shift" id="uM{/tVtj=Y}I9O#2A[U7"><value name="list"><block type="variables_get" id="tBj_e;Jj/C?2XoSt-Ml%"><field name="VAR" id="7|P7L.hJ)TsFJwv1k:L;">snake</field></block></value></block></value></block></statement><statement name="ELSE"><block type="variables_set" id="EsLq(Pdwf(dPr,`!)/%q"><field name="VAR" id="A][2^.$@*g:ja)g^V{IZ">growth</field><value name="VALUE"><shadow type="math_number" id="1$D74WJVit=j;Th0|{6r"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="Cj5Uj;Zhs;bO8.Fr$x0^"><field name="VAR" id="WqbX(Q#umbMV]$O(N;j*">mySprite</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="spritescreate" id="Fss#~1x-xbu5Z^tr?f]E"><value name="img"><shadow type="screen_image_picker" id="@i3~#b98(BVy2#%ZV@0|"><field name="img">img`
. . 7 7 7 7 7 7 7 7 7 7 7 7 . .
. 7 7 7 7 7 7 7 7 7 7 7 7 7 7 .
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7
. 7 7 7 7 7 7 7 7 7 7 7 7 7 7 .
. . 7 7 7 7 7 7 7 7 7 7 7 7 . .
`</field><data>{"commentRefs":[],"fieldData":{"img":"@i3~#b98(BVy2#%ZV@0|"}}</data></shadow></value><value name="kind"><shadow type="spritekind" id="!`.E{whJV1ZKd=^4=N(:"><field name="MEMBER">Player</field></shadow></value></block></value><next><block type="spritesetsetflag" id="HK^.YyPzW4)71GOWo^?{"><field name="flag">SpriteFlag.AutoDestroy</field><value name="sprite"><block type="variables_get" id="K`EwVNdvcS-KFf#KS6BO"><field name="VAR" id="WqbX(Q#umbMV]$O(N;j*">mySprite</field></block></value><value name="on"><shadow type="toggleOnOff" id="h{OL*zXa!rMsWx2b0lW^"><field name="on">true</field></shadow></value></block></next></block></next></block></statement><next><block type="variables_set" id="K*_}VQu4Z6Jqy$JZB[:a"><field name="VAR" id="^KHgy3to-BK4u%gw=cYK">x</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="NzMXp=5)!!27IY6Y$s$|"><field name="OP">ADD</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="Sprite_blockCombine_get" id="j(VADxe7%H=6AX.G7fJ6"><field name="property">Sprite.x</field><value name="mySprite"><block type="lists_index_get" id="-~Pq=JiLhde(5VW@_%oQ"><value name="LIST"><block type="variables_get" id="g[c+ZfP4Ka6]]~febWk#"><field name="VAR" id="7|P7L.hJ)TsFJwv1k:L;">snake</field></block></value><value name="INDEX"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="@{nhwuL6s@x@93A4]~?/"><field name="OP">MINUS</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="lists_length" id="*:YSJR+9}QNH$;Lqm-!^"><value name="VALUE"><block type="variables_get" id="%c+v.HF@h_DMx[|NMX{L"><field name="VAR" id="7|P7L.hJ)TsFJwv1k:L;">snake</field></block></value></block></value><value name="B"><shadow type="math_number" id="}=.djJ`H9{GK1FifDpal"><field name="NUM">1</field></shadow></value></block></value></block></value></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="D@QJz6*;_9fI^WgTuPG`"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number" id="C7Kna^G`Kj|%gbXB!,@h"><field name="NUM">16</field></shadow></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="2Y}{T!fC%_h@~]zmNIQ-"><field name="VAR" id="RkFtZavFa5:j^Re5*FIQ">speedX</field></block></value></block></value></block></value><next><block type="variables_set" id="x0MVDL1:O5=|?61l_ZJb"><field name="VAR" id="Vhta$c{IXfAGy1vPH!{o">y</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="fw[Uv:1hCUAh_A=noMt/"><field name="OP">ADD</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="Sprite_blockCombine_get" id="2-FX9NDOub]aIB8v|kOb"><field name="property">Sprite.y</field><value name="mySprite"><block type="lists_index_get" id="S-Y|::aF!%gqeY6L|}B0"><value name="LIST"><block type="variables_get" id="7`+*4c1X1/Ey$EOBj]`8"><field name="VAR" id="7|P7L.hJ)TsFJwv1k:L;">snake</field></block></value><value name="INDEX"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="*)5ZFV[VV}HV1d0n.!oR"><field name="OP">MINUS</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="lists_length" id="}EU]}5~en+xqTaZ_=END"><value name="VALUE"><block type="variables_get" id="CLF:3iuKKIW[[NXxmy/6"><field name="VAR" id="7|P7L.hJ)TsFJwv1k:L;">snake</field></block></value></block></value><value name="B"><shadow type="math_number" id="]Aw~#y$IpVUJX7Rd{SvG"><field name="NUM">1</field></shadow></value></block></value></block></value></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="2T|UKm#|@{s%(2.bH!VZ"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number" id=")P(@T]K0uATIBJmKs~=b"><field name="NUM">15</field></shadow></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="E:*h0[OOecIDG6E6[vV2"><field name="VAR" id="^WY1cxW$0WMkm5o~6o;H">speedY</field></block></value></block></value></block></value><next><block type="spritesetpos" id="R()J?}g;:M=hhKgPY;V#"><value name="sprite"><block type="variables_get" id="JF)rx2=i]gVl1*^w3pP}"><field name="VAR" id="WqbX(Q#umbMV]$O(N;j*">mySprite</field></block></value><value name="x"><shadow type="positionPicker"><field name="index">0</field></shadow><block type="variables_get" id="9W31y:K,WJJCU]#%g6;_"><field name="VAR" id="^KHgy3to-BK4u%gw=cYK">x</field></block></value><value name="y"><shadow type="positionPicker"><field name="index">0</field></shadow><block type="variables_get" id="qua)4H@k19WEa|AT!v~S"><field name="VAR" id="Vhta$c{IXfAGy1vPH!{o">y</field></block></value><next><block type="array_push" id="F$35zcAF)}3SjAh/2)cE"><value name="list"><block type="variables_get" id="L@1-*ujl$BESIo(3NY8W"><field name="VAR" id="7|P7L.hJ)TsFJwv1k:L;">snake</field></block></value><value name="value"><block type="variables_get" id="l0rt3}RviOHQ!xI!0Wx^"><field name="VAR" id="WqbX(Q#umbMV]$O(N;j*">mySprite</field></block></value><next><block type="controls_if" id="yxf|WecA*x6+@#baEyhi"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id=":!Y[:ruiMqni8-_d5A4p"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="lists_length" id="V/,IK:![vf*~%;=?gJdy"><value name="VALUE"><block type="variables_get" id="Z9N`]n)NI5dKNsCMCPJN"><field name="VAR" id="7|P7L.hJ)TsFJwv1k:L;">snake</field></block></value></block></value><value name="B"><shadow type="math_number" id="arepUkbREImQ1N`9~c-j"><field name="NUM">80</field></shadow></value></block></value><statement name="DO0"><block type="gameOver" id="QW%XT#OQ-kEEKR{i|M,n"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="0" _input_init="true"></mutation><field name="effect">effects.confetti</field><value name="win"><shadow type="toggleWinLose" id="qwlO}J`z)WB;:A=3@GA/"><field name="win">true</field></shadow></value></block></statement><next><block type="device_pause" id="S%A@9_)m^fPW*kn9=_[6"><value name="pause"><shadow type="timePicker" id="]u*[y=mCb(=zp{Pe.nhY"><field name="ms">200</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="spritesondestroyed" id="s|^fGPee)b{@.ep[#DWk" x="0" y="943"><value name="HANDLER_DRAG_PARAM_sprite"><shadow type="argument_reporter_custom" id="bR8W}#@3BflxLd%w2}#I"><mutation typename="Sprite"></mutation><field name="VALUE">sprite</field></shadow></value><value name="kind"><shadow type="spritekind" id=")!tQ]11eV6|tJ`S(t~`j"><field name="MEMBER">Player</field></shadow></value><statement name="HANDLER"><block type="gameOver" id="_:RW1:Br{pJ.g?S1@plE"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="0" _input_init="true"></mutation><field name="effect">effects.confetti</field><value name="win"><shadow type="toggleWinLose" id="OV5QYDs*m|KX*5k]Y1Wz"><field name="win">false</field></shadow></value></block></statement></block><block type="keyonevent" id="I$Db*zxro7(7OmkUL7ca" x="426" y="943"><field name="button">controller.up</field><field name="event">ControllerButtonEvent.Pressed</field><statement name="HANDLER"><block type="controls_if" id="Cn,`fg*t=6QXzH/{P9::"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="CyNxlc0D_RE^[{x%Su3,"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="z;KL-D~:VzZCPD@:aE2I"><field name="VAR" id="^WY1cxW$0WMkm5o~6o;H">speedY</field></block></value><value name="B"><shadow type="math_number" id="E(QR@wamT*.Pl*(%(awC"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="k**.~3a(L0ErD?/-~;$+"><field name="VAR" id="RkFtZavFa5:j^Re5*FIQ">speedX</field><value name="VALUE"><shadow type="math_number" id="0G6%n^H[yK%u#J9w,SMR"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="=eDywg(;T*UUATbO(i|z"><field name="VAR" id="^WY1cxW$0WMkm5o~6o;H">speedY</field><value name="VALUE"><shadow type="math_number" id="=8g8I^WC1oSWjZ!-[U^7"><field name="NUM">-1</field></shadow></value></block></next></block></statement></block></statement></block><block type="keyonevent" id="uH-e[%~0TG-J^Y(yRKS*" x="883" y="943"><field name="button">controller.down</field><field name="event">ControllerButtonEvent.Pressed</field><statement name="HANDLER"><block type="controls_if" id="F=!99FC?mrCfnhMyZ9tN"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="U8T!,vkMAsenuV(xS,Kq"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id=";G-4THf7:J}B`Bv$sgK6"><field name="VAR" id="^WY1cxW$0WMkm5o~6o;H">speedY</field></block></value><value name="B"><shadow type="math_number" id="PJjf0fjGK@V^PRUR([|w"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="6%_:SFZLS`tKnA#I8iqI"><field name="VAR" id="RkFtZavFa5:j^Re5*FIQ">speedX</field><value name="VALUE"><shadow type="math_number" id="A-sQt,$Xd}p.gp;mdpi{"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id=".(IWDD?OlH!TU(kDx##)"><field name="VAR" id="^WY1cxW$0WMkm5o~6o;H">speedY</field><value name="VALUE"><shadow type="math_number" id="Aw+S[X/2x(iq/[;xT*`k"><field name="NUM">1</field></shadow></value></block></next></block></statement></block></statement></block><block type="spritesoverlap" id="PTH2i@(dqJ;JJ),bzFBT" x="1341" y="943"><value name="HANDLER_DRAG_PARAM_sprite"><shadow type="argument_reporter_custom" id="VA*;1YINsa,XG4cIlDuk"><mutation typename="Sprite"></mutation><field name="VALUE">sprite</field></shadow></value><value name="kind"><shadow type="spritekind" id="5htRIZ{o7DDf9A/Dx1z@"><field name="MEMBER">Player</field></shadow></value><value name="HANDLER_DRAG_PARAM_otherSprite"><shadow type="argument_reporter_custom" id="veEu6`o.$#5,syIE#!V6"><mutation typename="Sprite"></mutation><field name="VALUE">otherSprite</field></shadow></value><value name="otherKind"><shadow type="spritekind" id="EbA+}^YNqu-:K,}I=OXC"><field name="MEMBER">Food</field></shadow></value><statement name="HANDLER"><block type="spritedestroy" id="9yvAw86WInoL}ZJ=q$F2"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="0" _input_init="true"></mutation><field name="effect">effects.spray</field><value name="sprite"><block type="argument_reporter_custom" id="KMaL~PrHf|ibHRe^XKh9"><mutation typename="Sprite"></mutation><field name="VALUE">otherSprite</field></block></value><next><block type="variables_set" id="~l~6O/Y3H6]lVc=xgEmc"><field name="VAR" id="A][2^.$@*g:ja)g^V{IZ">growth</field><value name="VALUE"><shadow type="math_number" id="#Br$tJ`pZly3ExQhrp9~"><field name="NUM">1</field></shadow></value><next><block type="function_call" id="JNx2by)|N41@HT~{Dpa$"><mutation name="spawnFood" functionid="%mGQmc^?`$2Ol:~^g88C"></mutation><next><block type="hudChangeScoreBy" id="RHkTC)am0RTiZ_~iM*ci"><value name="value"><shadow type="math_number" id="XDQ7ZA/jQ%K{reBm0[=4"><field name="NUM">1</field></shadow></value></block></next></block></next></block></next></block></statement></block><block type="keyonevent" id="|I366zqV^~6I{8dP3=?P" x="2043" y="943"><field name="button">controller.left</field><field name="event">ControllerButtonEvent.Pressed</field><statement name="HANDLER"><block type="controls_if" id="t[P=k*7Y!Zo;B*uFq3B_"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="bgRe1`$GsV!.+cXB4i|S"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="JU_#}QqSC1!Uqt)_u}35"><field name="VAR" id="RkFtZavFa5:j^Re5*FIQ">speedX</field></block></value><value name="B"><shadow type="math_number" id="}*wW:w+o2J}Dwkx:D+yW"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="H!:L`:iCQ|9r.OxZ0^xe"><field name="VAR" id="RkFtZavFa5:j^Re5*FIQ">speedX</field><value name="VALUE"><shadow type="math_number" id="*s]8km@gMwy1;*x45=Wb"><field name="NUM">-1</field></shadow></value><next><block type="variables_set" id="*AeUi-ZB8BmH:`xpfWLZ"><field name="VAR" id="^WY1cxW$0WMkm5o~6o;H">speedY</field><value name="VALUE"><shadow type="math_number" id="shJNLH/O{{tY/A9hH6DJ"><field name="NUM">0</field></shadow></value></block></next></block></statement></block></statement></block><block type="keyonevent" id="G2jk4Lc}iEG9vrJpcXs/" x="2501" y="943"><field name="button">controller.right</field><field name="event">ControllerButtonEvent.Pressed</field><statement name="HANDLER"><block type="controls_if" id="Wchm+]P8?$KIQ[LrB3Kp"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="u00/t9vj8%PGf,~hF}tT"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="R-RvtI,?cZ^(eGBjeiMM"><field name="VAR" id="RkFtZavFa5:j^Re5*FIQ">speedX</field></block></value><value name="B"><shadow type="math_number" id="Lr_}%H~^!FP#DJb9ju9@"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="[fFo:6KoS|0}N3QMwa}."><field name="VAR" id="RkFtZavFa5:j^Re5*FIQ">speedX</field><value name="VALUE"><shadow type="math_number" id="hAP3:jWX59y%0ES*,Z:{"><field name="NUM">1</field></shadow></value><next><block type="variables_set" id="X?j}:f+VS/D;gcg^7J7G"><field name="VAR" id="^WY1cxW$0WMkm5o~6o;H">speedY</field><value name="VALUE"><shadow type="math_number" id="^p:H(|hlg|DdQM%dTI!|"><field name="NUM">0</field></shadow></value></block></next></block></statement></block></statement></block></xml>