-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.blocks
1 lines (1 loc) · 13.8 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="n[7xFZi*t/OOIGt,4%Oi">Index</variable><variable id="WGr-AdT4?f:k+lF-X5-n">key</variable><variable id="Va#@@EqmgZN%P6?#oYE9">keyTest</variable><variable id="1l@qRRUhIaLvJ(|)0|`e">Wert</variable><variable id="tl1s:~4d5[1YXeN/cLz9">sprite</variable><variable id="jQgub57MjP43+X{Gd|v*">list</variable></variables><block type="pxt-on-start" id="YYTg=L.(i4zAy7k@0s3S" x="-571" y="-20"><statement name="HANDLER"><block type="variables_set" id="OuKYiR%%45a~tjnWrt-L"><field name="VAR" id="WGr-AdT4?f:k+lF-X5-n">key</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="lists_create_with" id="i|]8|)XVZt0ec+,Hmw{d" inline="false"><mutation items="5" horizontalafter="3"/><value name="ADD0"><shadow type="math_number" id="-A6;#HG*]+Aq7U7|o1^p"><field name="NUM">0</field></shadow></value><value name="ADD1"><shadow type="math_number" id="A}%OCUS%k_ZhjmMx=hH6"><field name="NUM">1</field></shadow></value><value name="ADD2"><shadow type="math_number" id="cK*JR_HAZxpb|+FIlx=n"><field name="NUM">2</field></shadow></value><value name="ADD3"><shadow type="math_number" id="#.0|hXbLy#Jzdpq$.GJI"><field name="NUM">3</field></shadow></value><value name="ADD4"><shadow type="math_number" id="C{U!7+H;5wS6(u`5tghe"><field name="NUM">4</field></shadow></value></block></value><next><block type="function_call" id="5qy][LJ($z^Bl=HuCi1F"><mutation name="neustart" functionid="/9N05!EytkFf1]Y]h6`["/></block></next></block></statement></block><block type="device_forever" id="=-0,:W`N{6sWQ%Kcck[." x="0" y="0"><statement name="HANDLER"><block type="controls_if" id="YIE;VbSMq0Roge??!`8#"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="game_ispaused" id="qM2q~h4oD)zriF8n@i~k"/></value><statement name="DO0"><block type="pxt_controls_for" id="LNI!hC][NB?3avs/c#BZ"><value name="VAR"><shadow type="variables_get_reporter" id="Ht%0Pv/XLP@/~NqZ{3,="><field name="VAR" id="n[7xFZi*t/OOIGt,4%Oi">Index</field></shadow></value><value name="TO"><shadow type="math_whole_number"><field name="NUM">4</field></shadow><block type="math_arithmetic" id="sOZ#$*W:HllcqQeFwp0d"><field name="OP">MINUS</field><value name="A"><shadow type="math_number" disabled="true"><field name="NUM">0</field></shadow><block type="lists_length" id="(7~O3LxMCkmbo{Gi(X6["><value name="VALUE"><block type="variables_get" id="QgWv}c@l|A-QpB#tkv(X"><field name="VAR" id="Va#@@EqmgZN%P6?#oYE9">keyTest</field></block></value></block></value><value name="B"><shadow type="math_number" id="8hWi7`7i[4K@.6rM:I})"><field name="NUM">1</field></shadow></value></block></value><statement name="DO"><block type="device_plot" id="abj21Tmw3RKeRAGKP6)`"><value name="x"><shadow type="math_number_minmax"><mutation min="0" max="4" label="Number" precision="0"/><field name="SLIDER">4</field></shadow><block type="variables_get" id="HEP~m5tASG!D^j9b=/gG"><field name="VAR" id="n[7xFZi*t/OOIGt,4%Oi">Index</field></block></value><value name="y"><shadow type="math_number_minmax"><mutation min="0" max="4" label="Number" precision="0"/><field name="SLIDER">0</field></shadow><block type="lists_index_get" id="+c(xW`G!/M`NF(RH1,yi"><value name="LIST"><block type="variables_get" id="(X!NF$ZEWx-QK.M7^x2{"><field name="VAR" id="Va#@@EqmgZN%P6?#oYE9">keyTest</field></block></value><value name="INDEX"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id=",ZdagLk-kwqUe{]C2p-M"><field name="VAR" id="n[7xFZi*t/OOIGt,4%Oi">Index</field></block></value></block></value></block></statement></block></statement></block></statement></block><block type="device_button_event" id="T=M:V)8}t6_O$D=K$Iif" x="-534" y="474"><field name="NAME">Button.A</field><statement name="HANDLER"><block type="controls_if" id="V6-Q2[DyxZPz*Ub(-,Mh"><mutation else="1"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="z(GpRbwPgS$6L7cw:x{@"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="game_sprite_property" id=")kc5t^cXmR*T76ZKTswJ"><field name="property">LedSpriteProperty.Y</field><value name="sprite"><block type="variables_get" id="h_@ngcOv@+}IMa5qe5kZ"><field name="VAR" id="tl1s:~4d5[1YXeN/cLz9">sprite</field></block></value></block></value><value name="B"><shadow type="math_number" id="]wsz)u_((M9jd_f5461H"><field name="NUM">4</field></shadow></value></block></value><statement name="DO0"><block type="game_sprite_set_property" id=");g[xE(28bhP8V%O|Y4."><field name="property">LedSpriteProperty.Y</field><value name="sprite"><block type="variables_get" id="*eEcybjT7Wc/8[5Oc5i^"><field name="VAR" id="tl1s:~4d5[1YXeN/cLz9">sprite</field></block></value><value name="value"><shadow type="math_number" id="e#-4dMvi@C.T~p=]ONcx"><field name="NUM">0</field></shadow></value></block></statement><statement name="ELSE"><block type="game_sprite_change_xy" id="}svKK2Kb^q4)[.(0gYwN"><field name="property">LedSpriteProperty.Y</field><value name="sprite"><block type="variables_get" id="]xu5C4Q=pY~Gjm!TuPz-"><field name="VAR" id="tl1s:~4d5[1YXeN/cLz9">sprite</field></block></value><value name="value"><shadow type="math_number" id="[t,LNVz5Lt0~O-teo7:V"><field name="NUM">1</field></shadow></value></block></statement></block></statement></block><block type="device_button_event" id="oBQ*1RriFE00brdEBlS~" x="108" y="475"><field name="NAME">Button.B</field><statement name="HANDLER"><block type="array_push" id="vAH,!Pr5!4d[U-wN{]Xn"><value name="list"><block type="variables_get" id="#eo%jEdYbcdun1=]t#ts"><field name="VAR" id="Va#@@EqmgZN%P6?#oYE9">keyTest</field></block></value><value name="value"><block type="game_sprite_property" id="p$4n]HfGG[29Zr=e[7NB"><field name="property">LedSpriteProperty.Y</field><value name="sprite"><block type="variables_get" id="pvCgT4pJ(c+spnG}{f0v"><field name="VAR" id="tl1s:~4d5[1YXeN/cLz9">sprite</field></block></value></block></value><next><block type="game_pause" id="bD7|]poEE0C23-PZEeGi"><next><block type="controls_if" id="@eDiw_L610uO_S1ooNmP"><mutation else="1"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="!7Z6_:)N{SYs2Iw!pjc#"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="game_sprite_property" id="*fx{%%HH]-[No3T/kt]."><field name="property">LedSpriteProperty.X</field><value name="sprite"><block type="variables_get" id="DX{c00,Yrb|}z,~z+xH{"><field name="VAR" id="tl1s:~4d5[1YXeN/cLz9">sprite</field></block></value></block></value><value name="B"><shadow type="math_number" id="P50rXeaZGR.%994YBcD|"><field name="NUM">4</field></shadow></value></block></value><statement name="DO0"><block type="device_pause" id="liwh%QKIq((5{KlUVfdw"><value name="pause"><shadow type="timePicker" id="gzF;.4/Th4}KRqNosCfh"><field name="ms">2000</field></shadow></value><next><block type="game_resume" id=":G$}tvr_q;poBna:{+:t"><next><block type="game_delete_sprite" id="DnfqLY4E+%5I|oMnF(oi"><value name="this"><block type="variables_get" id="0(aIfC6v^clh%zT2zaHm"><field name="VAR" id="tl1s:~4d5[1YXeN/cLz9">sprite</field></block></value><next><block type="function_call" id="(z[SUzXT;Csm?Vg+AR=_"><mutation name="testKeyTest" functionid="Vff9{O)Mk}kr)_b@@J{t"/><next><block type="function_call" id="*Z@OVg1]5=`1B_#{XLV("><mutation name="neustart" functionid="/9N05!EytkFf1]Y]h6`["/></block></next></block></next></block></next></block></next></block></statement><statement name="ELSE"><block type="device_pause" id="KEZ{wp(z#|7s{qxtL#Ww"><value name="pause"><shadow type="timePicker" id="$Nk:Yut]{!q[0DL+mlD="><field name="ms">500</field></shadow></value><next><block type="game_resume" id="B?EB:neY$u1xw%^Kke=t"><next><block type="game_sprite_set_property" id=":DNqR5mtrg`obu)/,@q5"><field name="property">LedSpriteProperty.Y</field><value name="sprite"><block type="variables_get" id="cOpVV8u6MTqn~HL1zA[t"><field name="VAR" id="tl1s:~4d5[1YXeN/cLz9">sprite</field></block></value><value name="value"><shadow type="math_number" id="/fZ#OT][EVT_PeBc.$n`"><field name="NUM">0</field></shadow></value><next><block type="game_sprite_change_xy" id=".7#oU]/)V4DKQs,!cO*T"><field name="property">LedSpriteProperty.X</field><value name="sprite"><block type="variables_get" id="Y-qUi?xrV]v0+~rYVxLD"><field name="VAR" id="tl1s:~4d5[1YXeN/cLz9">sprite</field></block></value><value name="value"><shadow type="math_number" id="IlGQ7VKc=_}a77X-=(gz"><field name="NUM">1</field></shadow></value></block></next></block></next></block></next></block></statement></block></next></block></next></block></statement></block><block type="device_button_event" id="^lWa?)s7T9u~myW_3|ul" x="-523" y="908"><field name="NAME">Button.AB</field><statement name="HANDLER"><block type="game_delete_sprite" id="m)KNd[B!B[I~ZK^:%O]l"><value name="this"><block type="variables_get" id="2n+lfXlZ*v%O6n=%|J/8"><field name="VAR" id="tl1s:~4d5[1YXeN/cLz9">sprite</field></block></value><next><block type="function_call" id="E+_WwG30zkevQQgy}b{E"><mutation name="neustart" functionid="/9N05!EytkFf1]Y]h6`["/></block></next></block></statement></block><block type="function_definition" id="dAOg-qahbdP4fd1o[omj" x="-573" y="1218"><mutation name="testKeyTest" functionid="Vff9{O)Mk}kr)_b@@J{t"/><field name="function_name">testKeyTest</field><comment>alternative, weil anfangs key == keyTest -> false ??</comment><statement name="STACK"><block type="pxt_controls_for" id="NxOqgb3I-vaox0B5Tu)M"><value name="VAR"><shadow type="variables_get_reporter" id="O*(Z?iG6LpiXz#IIs,A)"><field name="VAR" id="n[7xFZi*t/OOIGt,4%Oi">Index</field></shadow></value><value name="TO"><shadow type="math_whole_number"><field name="NUM">0</field></shadow><block type="math_number" id="iAZbvt?DkRu%ElORL*.z"><field name="NUM">4</field></block></value><statement name="DO"><block type="controls_if" id="@Y$j6}-)6$:xh}t0;}GO"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="i8FQ]Sm;2?RBWZNAPtCG"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="lists_index_get" id="A=S3dsl3M7Idsd(hHMwo"><value name="LIST"><block type="variables_get" id="^l_Hj{(}!=|~nlAo{j*s"><field name="VAR" id="WGr-AdT4?f:k+lF-X5-n">key</field></block></value><value name="INDEX"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="MP0pzj1XgpsOW2biiDkr"><field name="VAR" id="n[7xFZi*t/OOIGt,4%Oi">Index</field></block></value></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="lists_index_get" id="WHfGX_,~TxI013iJU`s="><value name="LIST"><block type="variables_get" id="^ybPWDtd2=O7;g^Dp{Ud"><field name="VAR" id="Va#@@EqmgZN%P6?#oYE9">keyTest</field></block></value><value name="INDEX"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="3[C3wm!7zaIqmYTLC|?h"><field name="VAR" id="n[7xFZi*t/OOIGt,4%Oi">Index</field></block></value></block></value></block></value><statement name="DO0"><block type="variables_change" id="K$0:YR0,BtI%ek]SdfRY"><field name="VAR" id="1l@qRRUhIaLvJ(|)0|`e">Wert</field><value name="VALUE"><shadow type="math_number" id=",d7Ywnd_GNa/J*uBn-^_"><field name="NUM">1</field></shadow></value></block></statement></block></statement><next><block type="controls_if" id="RF!Cit?V:PV9A]HfA$Fp"><mutation else="1"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="3q*7XD,Yas6jfd7QyXcJ"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="R*dM6.-FcM3#7@n=8|Dp"><field name="VAR" id="1l@qRRUhIaLvJ(|)0|`e">Wert</field></block></value><value name="B"><shadow type="math_number" id="95n9B!E){(ndubXh0Ldu"><field name="NUM">5</field></shadow></value></block></value><statement name="DO0"><block type="basic_show_icon" id="h?uh/%744j6.dw?/DWuM"><field name="i">IconNames.Yes</field></block></statement><statement name="ELSE"><block type="basic_show_icon" id="?GeeP.cjRn:ZHE-k$yF,"><field name="i">IconNames.No</field></block></statement></block></next></block></statement></block><block type="function_definition" id="TJ7d6j48``IMm5ne#S3/" x="137" y="1543"><mutation name="neustart" functionid="/9N05!EytkFf1]Y]h6`["/><field name="function_name">neustart</field><statement name="STACK"><block type="variables_set" id="MUw1bphS3:KUf5PQ7t4_"><field name="VAR" id="1l@qRRUhIaLvJ(|)0|`e">Wert</field><value name="VALUE"><shadow type="math_number" id=".Iy0?@OSWA85g7_@Q%I+"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="sU]OP7OG{s=Sv}gJZTX|"><field name="VAR" id="Va#@@EqmgZN%P6?#oYE9">keyTest</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="lists_create_with" id="SIl;b+|]iVk~uR!u|IUD"><mutation items="0" horizontalafter="3"/></block></value><next><block type="variables_set" id="SaDV#~uhmM)Ik@nK*BD6"><field name="VAR" id="tl1s:~4d5[1YXeN/cLz9">sprite</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="game_create_sprite" id="TTJp0Nwt%2z#}1-3U=.E"><value name="x"><shadow type="math_number" id=";Ubg^W`F1/@$wZN,j5(2"><field name="NUM">0</field></shadow></value><value name="y"><shadow type="math_number" id="-:13yKBY;#S=dt)ZrM`m"><field name="NUM">0</field></shadow></value></block></value><next><block type="game_sprite_set_property" id="wg][8VTiO}$iY!we[p~W"><field name="property">LedSpriteProperty.Blink</field><value name="sprite"><block type="variables_get" id="-QQlpN0?1;YkW]:e|{.s"><field name="VAR" id="tl1s:~4d5[1YXeN/cLz9">sprite</field></block></value><value name="value"><shadow type="math_number" id="H`l884Lq{pU_~v}^8,6Y"><field name="NUM">200</field></shadow></value></block></next></block></next></block></next></block></statement></block></xml>