-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.blocks
5 lines (5 loc) · 7.95 KB
/
main.blocks
1
2
3
4
5
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable type="SpriteKindLegacy" id="z~fALH$$-.A7z*WBg+aJ">0Player</variable><variable type="SpriteKindLegacy" id="Fya7V*p{mu)V}syPB.?S">1Enemy</variable><variable type="SpriteKindLegacy" id="=|c~q92i|@yxR7)h1!%`">2Projectile</variable><variable type="SpriteKindLegacy" id="N}|~Yw;}n.v;-f`CzGth">3Food</variable><variable id="u09t1|cRiw6r5)dhbuoA">player1</variable><variable id=".KnJfPn_XaD(GFM/i,y:">mySprite</variable></variables><block type="pxt-on-start" id="TlWy^}0U8W=x0t7}%RvT" x="0" y="0"><statement name="HANDLER"><block type="gameSplash" id="AUZ|NF^A+2$x=!~GKdD7"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="1" _input_init="true"></mutation><value name="title"><shadow type="text" id="mZBeKSyVO+i?/lPnV={D"><field name="TEXT">Sprite Walker</field></shadow></value><value name="subtitle"><shadow type="text" id="B}O_m=/AgagJ3($xlq;h"><field name="TEXT">"A" for coordinates</field></shadow></value><next><block type="gamesetbackgroundcolor" id="i}Zp$$HlkS,mY6*r`gX-"><value name="color"><shadow type="colorindexpicker" id="hYlD4oG#HMS@fN)Fcis5"><field name="index">12</field></shadow></value><next><block type="variables_set" id="}J[bKuhQCWsg.#Dg;$2F"><field name="VAR" id="u09t1|cRiw6r5)dhbuoA">player1</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="spritescreate" id="rV2R}m[NDZHNDKH]5($D"><value name="img"><shadow type="screen_image_picker" id=";@MIaN9]B]vo(t{Ocxgn"><field name="img">img`
1 1 1
1 2 1
1 1 1
`</field></shadow></value><value name="kind"><shadow type="spritetype" id="0Jm1ixMEbpE~qKPUIR*F"><field name="MEMBER">Player</field></shadow></value></block></value><next><block type="game_control_sprite" id="1L+4f?wIDBS]=HFB/q.w"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="0" _input_init="false"></mutation><value name="sprite"><block type="variables_get" id="_;x*,W+S$,6BK2[nxstB"><field name="VAR" id="u09t1|cRiw6r5)dhbuoA">player1</field></block></value></block></next></block></next></block></next></block></statement></block><block type="keyonevent" id="b$k$2~hSw|59^lY8`$lj" x="0" y="320"><field name="button">controller.A</field><field name="event">ControllerButtonEvent.Pressed</field><statement name="HANDLER"><block type="gameSplash" id="vr?=ymb*2}@#)P8jqK./"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="0" _input_init="false"></mutation><value name="title"><block type="text_join" id="sq~#^#@./{$#))9X32B)"><mutation items="4"/><value name="ADD0"><shadow type="text" id="k+@!dkXGPqddw%gA66b6"><field name="TEXT">X=</field></shadow></value><value name="ADD1"><shadow type="text"><field name="TEXT"/></shadow><block type="Sprite_blockCombine_get" id="B._^mV^,N.G[N[6_e]r8"><field name="property">Sprite.x</field><value name="mySprite"><block type="variables_get" id="HZYQFq($JjmE81:!oed{"><field name="VAR" id="u09t1|cRiw6r5)dhbuoA">player1</field></block></value></block></value><value name="ADD2"><shadow type="text" id="7@1Y`2Wy^!H|H@=I7CXw"><field name="TEXT"> Y=</field></shadow></value><value name="ADD3"><shadow type="text"><field name="TEXT"/></shadow><block type="Sprite_blockCombine_get" id="-k)UrOhw#3#.bRJupx}v"><field name="property">Sprite.y</field><value name="mySprite"><block type="variables_get" id="?=Z[8TWI+DviZ5.Q2~^9"><field name="VAR" id="u09t1|cRiw6r5)dhbuoA">player1</field></block></value></block></value></block></value></block></statement></block><block type="gameupdate" id="U[8G[Cn_SL^CZhFee+Z?" x="20" y="500"><statement name="HANDLER"><block type="controls_if" id="w6y_ty[Mg/ueI37LVQkZ"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="stpqCT3TC48qSOhhkJPk"><field name="OP">LTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="Sprite_blockCombine_get" id="c~`G_~8uK=,_`A3{Qiv-"><field name="property">Sprite.x</field><value name="mySprite"><block type="variables_get" id="^_o?on2GcJM.0p?Z_ni-"><field name="VAR" id="u09t1|cRiw6r5)dhbuoA">player1</field></block></value></block></value><value name="B"><shadow type="math_number" id=".+[/vz1qBsT-_Q_u2UYH"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="Sprite_blockCombine_set" id="Xo,e+t7S05={._(;pY9O"><field name="property">Sprite.x@set</field><value name="mySprite"><block type="variables_get" id="F%otmwXgOr#cttr0Pe|C"><field name="VAR" id="u09t1|cRiw6r5)dhbuoA">player1</field></block></value><value name="value"><shadow type="math_number" id="^!~mmlJD|uJ*~x7fSZJW"><field name="NUM">0</field></shadow></value></block></statement><next><block type="controls_if" id="~Ny)u(f$!d^]xO+iD;PH"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="}%G(bQy`1*3[H.B,C5wW"><field name="OP">GTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="Sprite_blockCombine_get" id="*1MyiaXdM*fsXl/^50d%"><field name="property">Sprite.x</field><value name="mySprite"><block type="variables_get" id="uXmAUE0$k[yvFozurIB;"><field name="VAR" id="u09t1|cRiw6r5)dhbuoA">player1</field></block></value></block></value><value name="B"><shadow type="math_number" id="q^hHeFO3C)f1t7-S16^w"><field name="NUM">159</field></shadow></value></block></value><statement name="DO0"><block type="Sprite_blockCombine_set" id="bX)X4[}]#blq8boU3bkn"><field name="property">Sprite.x@set</field><value name="mySprite"><block type="variables_get" id="bgEr]r*tT@r;eB@eoOd6"><field name="VAR" id="u09t1|cRiw6r5)dhbuoA">player1</field></block></value><value name="value"><shadow type="math_number" id="8b6wZgko:qhb1az7)AJ8"><field name="NUM">159</field></shadow></value></block></statement><next><block type="controls_if" id="qB;/x26=yYim%)=t+H)B"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="y6VhPtqe(|TJsps$5Ih5"><field name="OP">LTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="Sprite_blockCombine_get" id="v^~z4HFbhxqAE_~fMaep"><field name="property">Sprite.y</field><value name="mySprite"><block type="variables_get" id="Xh{4ZwCuEXK)$3I%P82S"><field name="VAR" id="u09t1|cRiw6r5)dhbuoA">player1</field></block></value></block></value><value name="B"><shadow type="math_number" id="N~4#~Y:76|rFiFmadlhK"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="Sprite_blockCombine_set" id="}$`=cB!)L%7,]R/_Twq^"><field name="property">Sprite.y@set</field><value name="mySprite"><block type="variables_get" id="[s_a,K[r(Z*_TXP*MsBU"><field name="VAR" id="u09t1|cRiw6r5)dhbuoA">player1</field></block></value><value name="value"><shadow type="math_number" id="{ad,vhY8N-$Pm9]}U=Ju"><field name="NUM">0</field></shadow></value></block></statement><next><block type="controls_if" id="nGKM/M]`:-b3svn!mf?I"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="1p4K.coiEC-51Nr)7^*%"><field name="OP">GTE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="Sprite_blockCombine_get" id=";%z;#b]Jux53=ZNE8!FV"><field name="property">Sprite.y</field><value name="mySprite"><block type="variables_get" id="WT3%OUGg!hHNX$3h,B+b"><field name="VAR" id="u09t1|cRiw6r5)dhbuoA">player1</field></block></value></block></value><value name="B"><shadow type="math_number" id="s*5ue|olF@@,JM_4Ef{|"><field name="NUM">119</field></shadow></value></block></value><statement name="DO0"><block type="Sprite_blockCombine_set" id="-=kxK]kL/~|x!`bGk2V~"><field name="property">Sprite.y@set</field><value name="mySprite"><block type="variables_get" id="6?5`W6.+4|W!M1t-]jDt"><field name="VAR" id="u09t1|cRiw6r5)dhbuoA">player1</field></block></value><value name="value"><shadow type="math_number" id="}U!=[[{m#6YPl%6fvb,."><field name="NUM">119</field></shadow></value></block></statement></block></next></block></next></block></next></block></statement></block></xml>