-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
1 lines (1 loc) · 9.53 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="mb.^4*lJWI{M?FD[g!fS">button</variable><variable id="0AlpP*(z]thRawgKa=s/">delay</variable><variable id="6~(U_D3(A,GVcE_4C77]">gameLoop</variable><variable id="{$;axy0T~l)3MbiGb7n8">count</variable><variable id="Ti,2gaIC:jAk;B=0GjIO">list</variable><variable id="=F|pJ`cspK9vz.?,tM(v">pressed</variable></variables><block type="device_forever" id="A62#RFDbG:fxKt#{jHNg" x="393" y="0"><statement name="HANDLER"><block type="controls_if" id="fDwt~7/W]|P-h32|~*v="><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="variables_get" id="/.T$/O}^Rc*Htaq:u!]%"><field name="VAR" id="6~(U_D3(A,GVcE_4C77]">gameLoop</field></block></value><statement name="DO0"><block type="controls_repeat_ext" id="@v;0fm|sDL7[t2zzK^6K"><value name="TIMES"><shadow type="math_whole_number"><field name="NUM">4</field></shadow><block type="variables_get" id="nF$V24G~U|7$0(k90LXj"><field name="VAR" id="{$;axy0T~l)3MbiGb7n8">count</field></block></value><statement name="DO"><block type="variables_set" id="N!-yu,Z|w0@0q7OFUKH1"><field name="VAR" id="mb.^4*lJWI{M?FD[g!fS">button</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_random" id="EpiN-=fG+v(t%!nGkA^("><value name="min"><shadow type="math_number" id="q@PSbnAYS:tL#Tbj@ctl"><field name="NUM">0</field></shadow></value><value name="limit"><shadow type="math_number" id="`OLu:GiZRn2)X!)9(8e}"><field name="NUM">2</field></shadow></value></block></value><next><block type="controls_if" id="F+7HIU~Jjw,L}I9BwDJn"><mutation elseif="1" else="1"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="4z1qM7|Zx,lg$MaYqPYW"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="u7w~04X?WcURG+`9,W8)"><field name="VAR" id="mb.^4*lJWI{M?FD[g!fS">button</field></block></value><value name="B"><shadow type="math_number" id="[3mHu!.s$1!:H/ERYSW)"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="device_show_leds" id="TNo5+?qA5/+O0KP79J64"><field name="LEDS">` # # # . . # # # . . # # # . . # # # . . # # # . . `</field></block></statement><value name="IF1"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="2/=w/CYAFdsjWID7k*B}"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="kv4SL=)FGgQ[y1LihU22"><field name="VAR" id="mb.^4*lJWI{M?FD[g!fS">button</field></block></value><value name="B"><shadow type="math_number" id="?|Qj%UYs0hY*?N^$MNx2"><field name="NUM">1</field></shadow></value></block></value><statement name="DO1"><block type="device_show_leds" id="{;H#a.i4M,EemZ_YwD?w"><field name="LEDS">` . . # # # . . # # # . . # # # . . # # # . . # # # `</field></block></statement><statement name="ELSE"><block type="device_show_leds" id="x5y=.XM[8GYeYY9pH!Fe"><field name="LEDS">` # # # # # # # # # # # # # # # # # # # # # # # # # `</field></block></statement><next><block type="device_pause" id="ylrAylDj?ewThvbb}HKZ"><value name="pause"><shadow type="timePicker" id=",Ex[E%bieYs/8#9NNdSe"><field name="ms">500</field></shadow></value><next><block type="device_show_leds" id=".;vsSr;61j!L-Ab]Pf[P"><field name="LEDS">` . . # . . . . # . . . . # . . . . # . . . . # . . `</field><next><block type="array_push" id="Do}n5p5K8S$IjU)w]HLk"><value name="list"><block type="variables_get" id="T9.ZdZWosy6u9)])FGtO"><field name="VAR" id="Ti,2gaIC:jAk;B=0GjIO">list</field></block></value><value name="value"><block type="variables_get" id="WMiGQ/6cuhy,6zi]n,W,"><field name="VAR" id="mb.^4*lJWI{M?FD[g!fS">button</field></block></value></block></next></block></next></block></next></block></next></block></statement></block></statement><next><block type="variables_set" id="l`11TJy2dFdJNi^omTJk"><field name="VAR" id="6~(U_D3(A,GVcE_4C77]">gameLoop</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="logic_boolean" id="w?P0KHF}0kd+Ci-=O8^0"><field name="BOOL">FALSE</field></block></value></block></next></block></statement></block><block type="pxt-on-start" id="vP=/.}XB3@vlV-8$0m9T" x="0" y="22"><statement name="HANDLER"><block type="variables_set" id="=so.mo$g|aJ*=xDO!klg"><field name="VAR" id="6~(U_D3(A,GVcE_4C77]">gameLoop</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="logic_boolean" id="X/hjGwK-#Y6SCY=2kWco"><field name="BOOL">TRUE</field></block></value><next><block type="variables_set" id=":IT|!LNS?+)3hw6A*i)!"><field name="VAR" id="{$;axy0T~l)3MbiGb7n8">count</field><value name="VALUE"><shadow type="math_number" id="gYB42fS:m,g7~``C4zDc"><field name="NUM">1</field></shadow></value><next><block type="variables_set" id="F@z^3aerFlDm@*8_,WG6"><field name="VAR" id="Ti,2gaIC:jAk;B=0GjIO">list</field><value name="VALUE"><block type="lists_create_with" id="q|(PR}K5-ah;Cxo/?W1@"><mutation items="0"/></block></value><next><block type="variables_set" id="GHNh=;H7Pn|u+X(m=K6~"><field name="VAR" id="=F|pJ`cspK9vz.?,tM(v">pressed</field><value name="VALUE"><shadow type="math_number" id=".(hd,jZ6yPP!|)DQX}sH"><field name="NUM">0</field></shadow></value></block></next></block></next></block></next></block></statement></block><block type="function_definition" id="s:,zb(6pI0fD})Pz|)fh" x="1303" y="20"><mutation name="onAnyButton" functionid="Nczq/Mpcsz}gF.42QXtz"><arg name="num" id="W}](JuU]cEj4-(bqqaP#" type="number"/></mutation><field name="function_name">onAnyButton</field><statement name="STACK"><block type="controls_if" id="M0Jb`r=$DXFYi|3634ve"><breakpoint/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id=")7aiC,8Jb@pA,p0p-DD8"><field name="OP">NEQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="array_shift" id="oFy,dDvOmYuv|BnE=WM-"><value name="list"><block type="variables_get" id="LVqW1(:Wu,DOK!V1`K$J"><field name="VAR" id="Ti,2gaIC:jAk;B=0GjIO">list</field></block></value></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="%(Qq]LL3#QIre_?)mXus"><field name="VALUE">num</field></block></value></block></value><statement name="DO0"><block type="game_game_over" id="rm,0?)z,unjx}4`Ma{O4"/></statement><next><block type="controls_if" id=",!WA~*pC)Kwr)#bhJuCe"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="M/V#L:pW`Wk+[18;?[7Q"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="lists_length" id="@}Noej]!z8y*pUN5$Sxo"><value name="VALUE"><block type="variables_get" id="agOe@1pbf@uV)^3rxE4p"><field name="VAR" id="Ti,2gaIC:jAk;B=0GjIO">list</field></block></value></block></value><value name="B"><shadow type="math_number" id="[r/gXA:7mn%^wI[4?h|~"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="basic_show_icon" id="Z*?_TEG7N46[)rltmWp_"><field name="i">IconNames.Yes</field><next><block type="variables_set" id="8ws9jE5J1v@OG7nYdi6h"><field name="VAR" id="6~(U_D3(A,GVcE_4C77]">gameLoop</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="logic_boolean" id="}?XV)PkYTz{Z-k4E]sXJ"><field name="BOOL">TRUE</field></block></value><next><block type="variables_change" id="WKiWuD#mvRgqUC+*|Sn:"><field name="VAR" id="{$;axy0T~l)3MbiGb7n8">count</field><value name="VALUE"><shadow type="math_number" id="{+9Am|iC(D(*Z5!v/TIi"><field name="NUM">1</field></shadow></value></block></next></block></next></block></statement></block></next></block></statement></block><block type="device_button_event" id="~C*gW2rWevLo-xjnv.#c" x="946" y="43"><field name="NAME">Button.A</field><statement name="HANDLER"><block type="function_call" id="keIwNr$RO4a.m=5oPYXV"><mutation name="onAnyButton" functionid="Nczq/Mpcsz}gF.42QXtz"><arg name="num" id="W}](JuU]cEj4-(bqqaP#" type="number"/></mutation><value name="W}](JuU]cEj4-(bqqaP#"><shadow type="math_number" id="rQUkz7Btq(m::GEcf|J!"><field name="NUM">0</field></shadow></value></block></statement></block><block type="device_button_event" id="*q;ZEHf/LT8{yT6#ABum" x="948" y="228"><field name="NAME">Button.B</field><statement name="HANDLER"><block type="function_call" id="3za#VYWqqHNpM;*??hmv"><mutation name="onAnyButton" functionid="Nczq/Mpcsz}gF.42QXtz"><arg name="num" id="W}](JuU]cEj4-(bqqaP#" type="number"/></mutation><value name="W}](JuU]cEj4-(bqqaP#"><shadow type="math_number" id="ZK22@PjI,1-0-,OOV:;]"><field name="NUM">1</field></shadow></value></block></statement></block><block type="device_button_event" id="d8Iw$Q`HRwFv{(}]5H;#" x="953" y="415"><field name="NAME">Button.AB</field><statement name="HANDLER"><block type="function_call" id="/.@TpCHbMJoKj(kZTpZ}"><mutation name="onAnyButton" functionid="Nczq/Mpcsz}gF.42QXtz"><arg name="num" id="W}](JuU]cEj4-(bqqaP#" type="number"/></mutation><breakpoint/><value name="W}](JuU]cEj4-(bqqaP#"><shadow type="math_number" id="u9[~,Lpho-@bNSP[sD[5"><field name="NUM">2</field></shadow></value></block></statement></block></xml>