-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
1 lines (1 loc) · 4.97 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="wYxShv$DM+F@$}YnaJ2h">Player</variable><variable id="F-[)zLa`vzpG?{:xR)oy">Enemy</variable><variable id="_YIOK6_)lQZ-Ya2xyh7m">sprite</variable></variables><block type="pxt-on-start" id="JhAdIwR:3iY`POCsW)P/" x="0" y="0"><statement name="HANDLER"><block type="variables_set" id="0E0K,2C+=J1nbpnb!Sbi"><field name="VAR" id="wYxShv$DM+F@$}YnaJ2h">Player</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="game_create_sprite" id="HlIvi`q`hzUT;y26tFcd"><value name="x"><shadow type="math_number" id="n3SF5TAa#4Ar2TT%Q)VW"><field name="NUM">2</field></shadow></value><value name="y"><shadow type="math_number" id="D.Rs/,sdElFA~-Exl*uT"><field name="NUM">4</field></shadow></value></block></value></block></statement></block><block type="device_button_event" id="%%GjGR4y%UhRzwD5g^%," x="-4" y="183"><field name="NAME">Button.A</field><statement name="HANDLER"><block type="game_move_sprite" id="hOV}mpz%w(3v^la6S:,e"><value name="sprite"><block type="variables_get" id="b4e+x.Hxfy78=I^^hxs^"><field name="VAR" id="wYxShv$DM+F@$}YnaJ2h">Player</field></block></value><value name="leds"><shadow type="math_number" id="Fdb$WP5yfcZ8+uHYLf8H"><field name="NUM">-1</field></shadow></value></block></statement></block><block type="device_button_event" id="^s_K7p5q%~,ySK%LCwIP" x="340" y="179"><field name="NAME">Button.B</field><statement name="HANDLER"><block type="game_move_sprite" id="2#PB)]ANv)@oNz~])IQ}"><value name="sprite"><block type="variables_get" id="URIKvG5S6met)493O-|@"><field name="VAR" id="wYxShv$DM+F@$}YnaJ2h">Player</field></block></value><value name="leds"><shadow type="math_number" id="IbRKMW|U9BP1+WUbsp+y"><field name="NUM">1</field></shadow></value></block></statement></block><block type="device_forever" id="g5]A@,)JT-(o0g)z?v@9" x="15" y="416"><statement name="HANDLER"><block type="device_pause" id="!,O4Y4|ej$V=Z`,e:41K"><value name="pause"><shadow type="timePicker"><field name="ms">100</field></shadow><block type="device_random" id="2BmfT980tzf,yj{n}owH"><value name="min"><shadow type="math_number" id="I~{F/[:}pr,Es1h^@QaL"><field name="NUM">2000</field></shadow></value><value name="limit"><shadow type="math_number" id="K]c*,inb}Jo77kYxp,y6"><field name="NUM">4000</field></shadow></value></block></value><next><block type="variables_set" id="L-|sS4Bb@}~sDciTewwd"><field name="VAR" id="F-[)zLa`vzpG?{:xR)oy">Enemy</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="game_create_sprite" id="-kN8cheweKTxyLcszo2="><value name="x"><shadow type="math_number"><field name="NUM">2</field></shadow><block type="device_random" id="jCDWa1~U_~UY89%P/n,p"><value name="min"><shadow type="math_number" id="Jul#6!;C[[mLM422(@Kj"><field name="NUM">0</field></shadow></value><value name="limit"><shadow type="math_number" id="sMJ5Pkl(EGLGlSNmLx*J"><field name="NUM">4</field></shadow></value></block></value><value name="y"><shadow type="math_number" id="rQANLgmks?FymGU^=7,R"><field name="NUM">0</field></shadow></value></block></value><next><block type="controls_repeat_ext" id="^/,pVzJZ7s;~s{rcFhl8"><value name="TIMES"><shadow type="math_whole_number" id="4q.2,$/L-(7:_T+S6m1L"><field name="NUM">4</field></shadow></value><statement name="DO"><block type="device_pause" id="=FpQ2DI#HzLZwOwuki4r"><value name="pause"><shadow type="timePicker" id="t5XF2n3GgIcx!$L*t^8P"><field name="ms">200</field></shadow></value><next><block type="game_sprite_change_xy" id=";P#QZs#Plj.}s3@K:@,|"><field name="property">LedSpriteProperty.Y</field><value name="sprite"><block type="variables_get" id="w)]~FXP]b.nD0#o5hhLQ"><field name="VAR" id="F-[)zLa`vzpG?{:xR)oy">Enemy</field></block></value><value name="value"><shadow type="math_number" id="OkD2CU3Ad^^qH{NC=$bu"><field name="NUM">1</field></shadow></value></block></next></block></statement><next><block type="controls_if" id="f2bzB#)EL5F}mh^/!kS."><mutation else="1"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="game_sprite_touching_sprite" id="%HoHN%xMe16o.svv`u5U"><value name="sprite"><block type="variables_get" id="jfrKzj3Q-XyN`2v_0,+$"><field name="VAR" id="wYxShv$DM+F@$}YnaJ2h">Player</field></block></value><value name="other"><block type="variables_get" id="sWGENjKB#?DwdW%}6vwt"><field name="VAR" id="F-[)zLa`vzpG?{:xR)oy">Enemy</field></block></value></block></value><statement name="DO0"><block type="game_game_over" id="Jq08_v7,it^Ty13BvP;E"/></statement><statement name="ELSE"><block type="game_add_score" id="2kc.z2HG-_E}2qv?-?x6"><value name="points"><shadow type="math_number" id="b$LfSL;ssk}N9_SpFxRZ"><field name="NUM">1</field></shadow></value><next><block type="game_delete_sprite" id="ff;U81Lg$r2BZ3HRfXtX"><value name="this"><block type="variables_get" id="^~6kxc0Dq@7UmI~vE9/a"><field name="VAR" id="F-[)zLa`vzpG?{:xR)oy">Enemy</field></block></value></block></next></block></statement></block></next></block></next></block></next></block></statement></block></xml>