-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
1 lines (1 loc) · 7.34 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="|7zZ/7+eJYS!NEz6J0jT">racer</variable><variable id="`,ch.#v=Fnoah`XfytI0">speed</variable><variable id="%^`^)RAdqmBbf%7cN}k)">obstacles</variable><variable id="@FHawA*%WYcWruCl6kNu">obstacle</variable><variable id="3r7ue}0-4kf8Vb*S8iSQ">score</variable></variables><block type="pxt-on-start" id="l`-T,Yr;MiZGP%)R|u{(" x="0" y="0"><statement name="HANDLER"><block type="variables_set" id="T|:@KREZC!(/_@^z#1xT"><field name="VAR" id="|7zZ/7+eJYS!NEz6J0jT">racer</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="game_create_sprite" id="m2BPuw--IE2q^1ymQJb3"><value name="x"><shadow type="math_number" id="1D0of/QEO)azexoLXp_e"><field name="NUM">2</field></shadow></value><value name="y"><shadow type="math_number" id="[~%u?j1M1$21KYo-Vxv)"><field name="NUM">4</field></shadow></value></block></value><next><block type="variables_set" id="#D%~bcLNBer$:5QK})#]"><field name="VAR" id="`,ch.#v=Fnoah`XfytI0">speed</field><value name="VALUE"><shadow type="math_number" id="EjxyT(akKWwT(Hn,zXTx"><field name="NUM">800</field></shadow></value><next><block type="variables_set" id="X`/Fn@[N1/E{%A}4|reg"><field name="VAR" id="%^`^)RAdqmBbf%7cN}k)">obstacles</field><value name="VALUE"><shadow type="math_number" id="+GY]I^ZnFAZ}ku(o+og("><field name="NUM">0</field></shadow><block type="lists_create_with" id="!Iu8qu$S7b?geP{9.])%"><mutation items="0" horizontalafter="3"></mutation></block></value><next><block type="device_while" id="dA4(jb/2P=@FyCVvjE6E"><breakpoint></breakpoint><value name="COND"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="game_isrunning" id="0p)s]{G]@B?IL)%$j9,t"></block></value><statement name="DO"><block type="array_push" id="0:gbtWoFWPm^oKjbmvC;"><value name="list"><block type="variables_get" id="CtU|gAqT2=}{ViC{F06e"><field name="VAR" id="%^`^)RAdqmBbf%7cN}k)">obstacles</field></block></value><value name="value"><block type="game_create_sprite" id="{K3+0ytt}uR=0I2@Kh(q"><value name="x"><block type="device_random" id="O=U~#:)s2rJK%|G)|~S5"><value name="min"><shadow type="math_number" id="6Z3JB:qNhNUQrC2e*4BI"><field name="NUM">0</field></shadow></value><value name="limit"><shadow type="math_number" id="}]}O4q{1g]F8)#R?q^g{"><field name="NUM">4</field></shadow></value></block></value><value name="y"><shadow type="math_number" id="88]P0.K4RT{lYgK%*Z}I"><field name="NUM">0</field></shadow></value></block></value><next><block type="device_pause" id="^OyZ$%LTE#liple2ojkn"><value name="pause"><shadow type="timePicker"></shadow><block type="variables_get" id="raKcr%y+*yl,$WQBhy5-"><field name="VAR" id="`,ch.#v=Fnoah`XfytI0">speed</field></block></value><next><block type="pxt_controls_for_of" id="2W#nMs}8W-yG]60_vTF{"><value name="VAR"><shadow type="variables_get_reporter" id="^-C[xJ#z/H(8KzHA+?zI"><field name="VAR" id="@FHawA*%WYcWruCl6kNu">obstacle</field></shadow></value><value name="LIST"><block type="variables_get" id=";Op58)x!dJfcCNa,Rk4M"><field name="VAR" id="%^`^)RAdqmBbf%7cN}k)">obstacles</field></block></value><statement name="DO"><block type="game_sprite_change_xy" id="Z1){4wdAiOZ=aqTw^A,r"><field name="property">LedSpriteProperty.Y</field><value name="sprite"><block type="variables_get" id="m1404lpIVhBCre[/gK)("><field name="VAR" id="@FHawA*%WYcWruCl6kNu">obstacle</field></block></value><value name="value"><shadow type="math_number" id="SqTgyk]%KaVY10|3bT*."><field name="NUM">1</field></shadow></value><next><block type="controls_if" id="(=++=+c:i6:7mG,GO~_}"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="game_sprite_touching_sprite" id="/UL?ji~oK_iIF|0k20-t"><value name="sprite"><block type="variables_get" id="~$aO^Bw6)pTJQqc:Hcbi"><field name="VAR" id="@FHawA*%WYcWruCl6kNu">obstacle</field></block></value><value name="other"><block type="variables_get" id="L}e=5Jcd+tj(xrnE,p;o"><field name="VAR" id="|7zZ/7+eJYS!NEz6J0jT">racer</field></block></value></block></value><statement name="DO0"><block type="game_set_score" id="u5gZ3nS]+VC6vFb@rcDk"><value name="points"><block type="variables_get" id="52LetSeLKW]`3Ca;PbxP"><field name="VAR" id="3r7ue}0-4kf8Vb*S8iSQ">score</field></block></value><next><block type="game_game_over" id="p_HjQHM#3xy:C%T%IDdb"></block></next></block></statement><next><block type="controls_if" id="G4rHCQ3!pF_rw~L1!gia"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="*Rvd/jYgSsO!N@cN]Hm|"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="game_sprite_property" id="14aA_JIh`2`I|fv3Dvs?"><field name="property">LedSpriteProperty.Y</field><value name="sprite"><block type="variables_get" id="gtTD}a{nC]A`{7!gmS8E"><field name="VAR" id="@FHawA*%WYcWruCl6kNu">obstacle</field></block></value></block></value><value name="B"><shadow type="math_number" id="Wx4*tI#,Q18bZM:0}zeE"><field name="NUM">4</field></shadow></value></block></value><statement name="DO0"><block type="variables_change" id="t?;WupnGzo3TpaEafdPp"><field name="VAR" id="3r7ue}0-4kf8Vb*S8iSQ">score</field><value name="VALUE"><shadow type="math_number" id="sq6RNNI(WXVZQnZMy%E+"><field name="NUM">1</field></shadow></value><next><block type="game_delete_sprite" id="p!^P6${F=ns`n,8SW1Lk"><value name="this"><block type="variables_get" id="a1~yz;Hx{QK)F]u.g-(-"><field name="VAR" id="@FHawA*%WYcWruCl6kNu">obstacle</field></block></value></block></next></block></statement></block></next></block></next></block></statement><next><block type="device_pause" id="a:o-3mw~n6$J5d#!w|36"><value name="pause"><shadow type="timePicker"></shadow><block type="variables_get" id="b8EGMJ)})|+(8rWwp,b,"><field name="VAR" id="`,ch.#v=Fnoah`XfytI0">speed</field></block></value></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></statement></block><block type="device_button_event" id="7,Z1KqkG2~DXU6FC],n@" x="1040" y="15"><field name="NAME">Button.A</field><statement name="HANDLER"><block type="game_sprite_change_xy" id="ShW/We:qzYu|PoCh:$cA"><field name="property">LedSpriteProperty.X</field><value name="sprite"><block type="variables_get" id="h,XUr^@C,Ry.37e^E8%5"><field name="VAR" id="|7zZ/7+eJYS!NEz6J0jT">racer</field></block></value><value name="value"><shadow type="math_number" id="8BmE9Q3ZhNFa~ky%RRhs"><field name="NUM">-1</field></shadow></value></block></statement></block><block type="device_button_event" id="2M,CylCcfao0C%6c1zSf" x="1046" y="169"><field name="NAME">Button.B</field><statement name="HANDLER"><block type="game_sprite_change_xy" id="TSUsZ:5?rs;G-VI0I039"><field name="property">LedSpriteProperty.X</field><value name="sprite"><block type="variables_get" id="XG!uHM?+?.E^;ZJ2jml|"><field name="VAR" id="|7zZ/7+eJYS!NEz6J0jT">racer</field></block></value><value name="value"><shadow type="math_number" id="09orBzush!aua:)#q|tf"><field name="NUM">1</field></shadow></value></block></statement></block><block type="device_gesture_event" id="ifdL_VI(KkxqyPWVpI}$" x="1051" y="348"><field name="NAME">Gesture.Shake</field><statement name="HANDLER"><block type="variables_change" id="vzOo%D*(-z5T`,zl6)$3"><field name="VAR" id="`,ch.#v=Fnoah`XfytI0">speed</field><value name="VALUE"><shadow type="math_number" id="Fy2WK7hg+?)-0t==^CYd"><field name="NUM">-100</field></shadow></value></block></statement></block></xml>