-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
1 lines (1 loc) · 18.8 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="R%!BU5eV%ix+)fJq|~bI">currentDir</variable><variable id="sCZ6Qiu}@2[Cu._sjCq.">rotation</variable><variable id="cksMOuq/K*c/HOk2TWsW">Matthew</variable><variable id="f#|%Fn~u~BUkUR:zl3RW">matthew0</variable><variable type="KIND_SpriteKind" id="q)WbBa1rZKDWMR@@@PHz">Player</variable><variable type="KIND_SpriteKind" id="sCh:bK9hL~[M)i1@ua09">Projectile</variable><variable type="KIND_SpriteKind" id="Wua[ppPb^|oqVbL(`~L^">Food</variable><variable type="KIND_SpriteKind" id="=Va%JTR98uF/9d[3;c9!">Enemy</variable></variables><block type="function_definition" id="%B1RWL%A:+W|N[I5*=+4" x="110" y="30"><mutation name="animatePlayer" functionid="vlh8Ad)Vhve!;cL$=jMD"/><field name="function_name">animatePlayer</field><statement name="STACK"><block type="variables_set" id="M8~BAi~YARLqBvsr|B/,"><field name="VAR" id="f#|%Fn~u~BUkUR:zl3RW">matthew0</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="logic_boolean" id="9G=dlYWi9S3E#~|ii~6b"><field name="BOOL">FALSE</field></block></value><next><block type="variables_set" id="#5[{TPwzkc*3$XqLR!/^"><field name="VAR" id="sCZ6Qiu}@2[Cu._sjCq.">rotation</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="text" id="?duxi9hvs^SK;ag6@W=i"><field name="TEXT">down</field></block></value><next><block type="variables_set" id="Y+aoEN!57rY72E^/P$f#"><field name="VAR" id="cksMOuq/K*c/HOk2TWsW">Matthew</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="spritescreate" id="6|X+@h:o*Vc_1py7mpQ}"><value name="img"><shadow type="screen_image_picker" id="zi{ccA}`I{9W=@9;YQT8"><field name="img">assets.image`Delete`</field><data>{"commentRefs":[],"fieldData":{"img":"myImages.y2*$VkpFMA`}ktWpm5JG"}}</data></shadow></value><value name="kind"><shadow type="spritekind" id="pE0#qldPG8]?H)HdL(X3"><field name="MEMBER">Player</field></shadow></value></block></value></block></next></block></next></block></statement></block><block type="gameinterval" id="mcD|-=%#iZ8xpTuwcG1F" x="645" y="20"><value name="period"><shadow type="timePicker" id="ihsQa?AXh|IOZ{:myNTt"><field name="ms">100</field></shadow></value><statement name="HANDLER"><block type="controls_if" id="r*gpDta0ypF6/9X|sC*4"><mutation elseif="3" else="1"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="keyispressed" id="@j{,3*_u@?:Z7;UvDc4h"><field name="button">controller.right</field></block></value><statement name="DO0"><block type="function_call" id="4jKyr|i2IaTKYB:|?fu="><mutation name="walkRight" functionid="Qn/y%FR5SNVgR]a7K4[R"/><next><block type="variables_set" id="~o~Q~FP|NS-WVn-CEy2d"><field name="VAR" id="sCZ6Qiu}@2[Cu._sjCq.">rotation</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="text" id="fIQu8P6#q`?1ud)s@9k6"><field name="TEXT">right</field></block></value></block></next></block></statement><value name="IF1"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="keyispressed" id="7j-Qqp%Ka+l-:6Fq8cxS"><field name="button">controller.down</field></block></value><statement name="DO1"><block type="function_call" id="iG}]3md*ZS~8;}[ewF`N"><mutation name="walkDown" functionid="6eDa@7M%tPyGiT7/ni8o"/><next><block type="variables_set" id="6ytuqD]P*FK*;DUbb-4k"><field name="VAR" id="sCZ6Qiu}@2[Cu._sjCq.">rotation</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="text" id="M+~|chpCaOs?I$!A%b*N"><field name="TEXT">down</field></block></value></block></next></block></statement><value name="IF2"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="keyispressed" id="H8M__#G??ty1bbJD.|8K"><field name="button">controller.left</field></block></value><statement name="DO2"><block type="function_call" id="%qPDDl(RQ72`~CS_q,J!"><mutation name="walkLeft" functionid="=@MJ:)NU[t;mn#6Bv]2t"/><next><block type="variables_set" id="S4[OQ(CMj1m.hLLOn~y,"><field name="VAR" id="sCZ6Qiu}@2[Cu._sjCq.">rotation</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="text" id="PfQS8CRn,h|4^=_+($9:"><field name="TEXT">left</field></block></value></block></next></block></statement><value name="IF3"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="keyispressed" id="cUBEI_v+|,h/RV9C(`Jf"><field name="button">controller.up</field></block></value><statement name="DO3"><block type="function_call" id="mM_,=UeTJD6,*^DuaFY+"><mutation name="walkUp" functionid="+$0#5/YKCKP[~c2koK!Q"/><next><block type="variables_set" id="/#zm8.=#5xsnJp^JgXF."><field name="VAR" id="sCZ6Qiu}@2[Cu._sjCq.">rotation</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="text" id="QV6VnZam3SKvdi^7%aDk"><field name="TEXT">up</field></block></value></block></next></block></statement><statement name="ELSE"><block type="function_call" id="@49?A]w9YHzEM`b^|x]p"><mutation name="playerHasStopped" functionid="9g?BT}oSm#ys*??zh=)6"/></block></statement></block></statement></block><block type="function_definition" id="hhr9_p9!srAzjLw|6:m3" x="1186" y="20"><mutation name="walkDown" functionid="6eDa@7M%tPyGiT7/ni8o"/><field name="function_name">walkDown</field><statement name="STACK"><block type="controls_if" id="0+m.+DbolSbvo?5vZ+BZ"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="@$r6MHRyX!K*_cjBQT7S"><field name="OP">NEQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="FD.^2ejpprz:LO~Do1r?"><field name="VAR" id="R%!BU5eV%ix+)fJq|~bI">currentDir</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="text" id="__@3G1rz/.Dn^I9EM+aw"><field name="TEXT">Down</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="72!Wv$#B#!3Z+JBMnOnv"><field name="VAR" id="R%!BU5eV%ix+)fJq|~bI">currentDir</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="text" id="g6i53:!+$2|ib$J2}P]K"><field name="TEXT">Down</field></block></value><next><block type="run_image_animation" id="Smk]+?aP!`XcYCr.a3MX"><value name="sprite"><shadow type="variables_get" id="QHwLg#`Y|:mirvvi9FMI"><field name="VAR" id="cksMOuq/K*c/HOk2TWsW">Matthew</field></shadow></value><value name="frames"><shadow type="animation_editor" id="|7)_ld}tO#z1s8g1ZblU"><field name="frames">assets.animation`MatthewDown`</field><data>{"commentRefs":[],"fieldData":{"frames":"myAnimations.anim3"}}</data></shadow></value><value name="frameInterval"><shadow type="timePicker" id="!%toGG6vUJ6x8]dBMb)V"><field name="ms">200</field></shadow></value><value name="loop"><shadow type="toggleOnOff" id="8K7$AAOG5G^-3^I{7seW"><field name="on">true</field></shadow></value></block></next></block></statement></block></statement></block><block type="function_definition" id="TxVs=Y/EUoF_~w*$,Qt5" x="2014" y="20"><mutation name="walkUp" functionid="+$0#5/YKCKP[~c2koK!Q"/><field name="function_name">walkUp</field><statement name="STACK"><block type="controls_if" id="O%jCue@K8$|$cBEz=}AA"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="|~(B)v%2b!`)u7R%liD%"><field name="OP">NEQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="d.7g}JArX/tRAc/-JUSZ"><field name="VAR" id="R%!BU5eV%ix+)fJq|~bI">currentDir</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="text" id="/ETL95MA.+bdSGm1l%}P"><field name="TEXT">Up</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="qhjNtd$OA9:.k};#bbRp"><field name="VAR" id="R%!BU5eV%ix+)fJq|~bI">currentDir</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="text" id="|3(Ljjf@$F4*Ks!Dx=.~"><field name="TEXT">Up</field></block></value><next><block type="run_image_animation" id="U-AGazL~LRgZ`!vc3tuy"><value name="sprite"><shadow type="variables_get" id="tram`PD7}$odNk66NlH1"><field name="VAR" id="cksMOuq/K*c/HOk2TWsW">Matthew</field></shadow></value><value name="frames"><shadow type="animation_editor" id="`ST*1qGz?ldZ._R*nl^*"><field name="frames">assets.animation`MatthewUp`</field><data>{"commentRefs":[],"fieldData":{"frames":"myAnimations.anim5"}}</data></shadow></value><value name="frameInterval"><shadow type="timePicker" id="=y^LGAAl|/|jl_*+QB/|"><field name="ms">200</field></shadow></value><value name="loop"><shadow type="toggleOnOff" id="5kFJ3#sK=v,WK?sIbe=e"><field name="on">true</field></shadow></value></block></next></block></statement></block></statement></block><block type="function_definition" id="NQcE^$CAmi4iER2EW;X," x="20" y="849"><mutation name="playerHasStopped" functionid="9g?BT}oSm#ys*??zh=)6"/><field name="function_name">playerHasStopped</field><statement name="STACK"><block type="controls_if" id="1Hi@##+sf.nH66wUzo?z"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="$^*0n!YMs*stjm+/{9OZ"><field name="OP">NEQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="b(s0fsnxab!Q]|RwC[7s"><field name="VAR" id="R%!BU5eV%ix+)fJq|~bI">currentDir</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="text" id="WYeQ/_tp^co}eHx9c=;X"><field name="TEXT">Stop</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="=_?[V}m^jl~f-3uGhjOI"><field name="VAR" id="R%!BU5eV%ix+)fJq|~bI">currentDir</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="text" id="e.DR88oF~Srg?AaeA#`r"><field name="TEXT">Stop</field></block></value><next><block type="controls_if" id="y8clh3z#OWF;9`_bTWsD"><mutation elseif="3"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="}^bwn8zEp6TxGgm=,n79"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="C|UcykkB(C^gptlt9_,T"><field name="VAR" id="sCZ6Qiu}@2[Cu._sjCq.">rotation</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="text" id="geRd!BpY#iUy=)p,@.3|"><field name="TEXT">right</field></block></value></block></value><statement name="DO0"><block type="run_image_animation" id="6((GWP0lbwbG%~x!;Oi{"><value name="sprite"><shadow type="variables_get" id="$nQ7MX#[Ntv?V*XJN21N"><field name="VAR" id="cksMOuq/K*c/HOk2TWsW">Matthew</field></shadow></value><value name="frames"><shadow type="animation_editor" id="`d!Q*K,`eMBx#*Bw1K*;"><field name="frames">assets.animation`MatthewRight0`</field><data>{"commentRefs":[],"fieldData":{"frames":"myAnimations.anim9"}}</data></shadow></value><value name="frameInterval"><shadow type="timePicker" id="{5xNmJYj=B~bF(.)RPf="><field name="ms">200</field></shadow></value><value name="loop"><shadow type="toggleOnOff" id="Qh[V~w6u1i6qSh0p%!2v"><field name="on">true</field></shadow></value></block></statement><value name="IF1"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="$uDT%?]G,Y?4/n8F])V+"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="}!:8:56f^7:M~}5#0c3i"><field name="VAR" id="sCZ6Qiu}@2[Cu._sjCq.">rotation</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="text" id="`:ilt8(o1S9Uz3?/~O[f"><field name="TEXT">down</field></block></value></block></value><statement name="DO1"><block type="run_image_animation" id="/[`bX9[-uh|M#xa9k=);"><value name="sprite"><shadow type="variables_get" id="9a2Im4T@b@]zI8J.%OT`"><field name="VAR" id="cksMOuq/K*c/HOk2TWsW">Matthew</field></shadow></value><value name="frames"><shadow type="animation_editor" id="a,LrDjPr^s?O0J.}B.pU"><field name="frames">assets.animation`MatthewDown0`</field><data>{"commentRefs":[],"fieldData":{"frames":"myAnimations.anim4"}}</data></shadow></value><value name="frameInterval"><shadow type="timePicker" id="q(?doV%7lTTuU9HuNw0z"><field name="ms">200</field></shadow></value><value name="loop"><shadow type="toggleOnOff" id="6ETez3j7dPXje4=OnA8O"><field name="on">true</field></shadow></value></block></statement><value name="IF2"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="0!B7$;V+r}ao}qZ!JIb4"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="KvS90`MG3w_hvv=(IQCX"><field name="VAR" id="sCZ6Qiu}@2[Cu._sjCq.">rotation</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="text" id="@{svfHnbTU}H5AZ.b8[Z"><field name="TEXT">left</field></block></value></block></value><statement name="DO2"><block type="run_image_animation" id="F9k3dEPI2m6H-P)(w|G."><value name="sprite"><shadow type="variables_get" id="=g^[6LK9moWX_cEU@JUQ"><field name="VAR" id="cksMOuq/K*c/HOk2TWsW">Matthew</field></shadow></value><value name="frames"><shadow type="animation_editor" id="H:Y=iqYry.K94f=B!/lw"><field name="frames">assets.animation`MatthewLeft0`</field><data>{"commentRefs":[],"fieldData":{"frames":"myAnimations.anim8"}}</data></shadow></value><value name="frameInterval"><shadow type="timePicker" id="Le^1g0Fcnn*ApoV}iHB:"><field name="ms">200</field></shadow></value><value name="loop"><shadow type="toggleOnOff" id="$7vtUGY.MoAlLh}JFxFF"><field name="on">true</field></shadow></value></block></statement><value name="IF3"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="B7vFN$*8ymbY#=G=BUe["><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="34M_*X0=Z)Do`*_5d;]+"><field name="VAR" id="sCZ6Qiu}@2[Cu._sjCq.">rotation</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="text" id="SyRx@}u%9BF7!^lIAe!0"><field name="TEXT">up</field></block></value></block></value><statement name="DO3"><block type="run_image_animation" id="D?!AiE2|w47(%C6Tw:o_"><value name="sprite"><shadow type="variables_get" id="xhDU,HWb8LRv)HS8*/?-"><field name="VAR" id="cksMOuq/K*c/HOk2TWsW">Matthew</field></shadow></value><value name="frames"><shadow type="animation_editor" id="42aL)2inH479h9*Qj#PE"><field name="frames">assets.animation`MatthewUp0`</field><data>{"commentRefs":[],"fieldData":{"frames":"myAnimations.anim6"}}</data></shadow></value><value name="frameInterval"><shadow type="timePicker" id="HFHT0tlmx29+eh2t`8dR"><field name="ms">200</field></shadow></value><value name="loop"><shadow type="toggleOnOff" id="PPn@QM^qzhgpfI9jScWP"><field name="on">true</field></shadow></value></block></statement></block></next></block></statement></block></statement></block><block type="function_definition" id="/#qr39|O8kbhE!{mb)km" x="658" y="849"><mutation name="walkLeft" functionid="=@MJ:)NU[t;mn#6Bv]2t"/><field name="function_name">walkLeft</field><statement name="STACK"><block type="controls_if" id="zOyVVWAGTH=RC8pV!6Q}"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="yZ)9!%sz5c52S]MDlh29"><field name="OP">NEQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="0cl[C5ds5Id0Q:L*^nRQ"><field name="VAR" id="R%!BU5eV%ix+)fJq|~bI">currentDir</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="text" id="cZyCPu:lIi$jA)vZTp;O"><field name="TEXT">Left</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="`}OuSvLaSGQir+S/dfvq"><field name="VAR" id="R%!BU5eV%ix+)fJq|~bI">currentDir</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="text" id="U-GKhXN+1[|m%36%7iW1"><field name="TEXT">Left</field></block></value><next><block type="run_image_animation" id="@Gcv!=Y$:Fd+zCwKlRlK"><value name="sprite"><shadow type="variables_get" id="dS^O_hX#IYnVg61T*Byi"><field name="VAR" id="cksMOuq/K*c/HOk2TWsW">Matthew</field></shadow></value><value name="frames"><shadow type="animation_editor" id="dfOiBB*`Nd~#xCp]Jw+{"><field name="frames">assets.animation`MatthewLeft`</field><data>{"commentRefs":[],"fieldData":{"frames":"myAnimations.anim7"}}</data></shadow></value><value name="frameInterval"><shadow type="timePicker" id="O6^ooZfqTJH$Tm8N{?GF"><field name="ms">200</field></shadow></value><value name="loop"><shadow type="toggleOnOff" id="p6-(oq.NSQCCor!U3=n|"><field name="on">true</field></shadow></value></block></next></block></statement></block></statement></block><block type="function_definition" id="p}vWT1]96j/CMcJ@Dsf/" x="1184" y="849"><mutation name="walkRight" functionid="Qn/y%FR5SNVgR]a7K4[R"/><field name="function_name">walkRight</field><statement name="STACK"><block type="controls_if" id="B)]N^g`.+,S7*TCs%^r^"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="[FKX~Ls`/_*5J8q#.ha]"><field name="OP">NEQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="P#Pk6i{:2H5$;jji91%w"><field name="VAR" id="R%!BU5eV%ix+)fJq|~bI">currentDir</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="text" id="GFEs@JBMolbl[6NS8!kc"><field name="TEXT">Right</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="rV8`rgQ6[xtW_D%^Z=#v"><field name="VAR" id="R%!BU5eV%ix+)fJq|~bI">currentDir</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="text" id="IG*$2./VZ;Vkls!u/b.s"><field name="TEXT">Right</field></block></value><next><block type="run_image_animation" id="G%:6n]Vw5b2!}p;%rjM}"><value name="sprite"><shadow type="variables_get" id="R^lS(uR{Mm^|,f)nd?nd"><field name="VAR" id="cksMOuq/K*c/HOk2TWsW">Matthew</field></shadow></value><value name="frames"><shadow type="animation_editor" id="6GwQ7jbk{Ti$OA]zrApd"><field name="frames">assets.animation`MatthewRight`</field><data>{"commentRefs":[],"fieldData":{"frames":"myAnimations.anim10"}}</data></shadow></value><value name="frameInterval"><shadow type="timePicker" id="3$ICOqV}WPGthlFa*Z%Q"><field name="ms">200</field></shadow></value><value name="loop"><shadow type="toggleOnOff" id="q-G^qG7F6utoEp%8IN7B"><field name="on">true</field></shadow></value></block></next></block></statement></block></statement></block></xml>