This repository was archived by the owner on Aug 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.blocks
More file actions
1 lines (1 loc) · 18.1 KB
/
main.blocks
File metadata and controls
1 lines (1 loc) · 18.1 KB
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable type="KIND_SpriteKind" id="%KGSYCrH[o~nm86N6Myk">animated</variable><variable type="KIND_SpriteKind" id="KHrP,@jiW6)7yfa+QM#p">Player</variable><variable type="KIND_SpriteKind" id="Q`PoB[sCI~AlM%wkhXjQ">Projectile</variable><variable type="KIND_SpriteKind" id="V6kyXk`L3)worQAn6n+!">Food</variable><variable type="KIND_SpriteKind" id="i]A.(Gi~Zyg;n$h+fB-y">Enemy</variable><variable id="6ugt)*wrP!d)899*Q]gV">started</variable><variable id="mjrRd1ZNDRg=t|0jN=hC">car</variable><variable id="4H3]E$IQu$,A+9$q3z9d">car_back</variable><variable id="UvVGjl((ewo;n}n|+6e9">road_mark</variable><variable id="Kj@l,~n3`sNL3)NUfR_q">mySprite</variable></variables><block type="keyonevent" id="[]UY(iP~c]^?Z3wz;QiT" x="1150" y="-170"><field name="button">controller.A</field><field name="event">ControllerButtonEvent.Pressed</field><statement name="HANDLER"><block type="controls_if" id="#,_mB@qJ]c}MDWFrK|8:"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="f|3uJWm8V3uKazLhu@D-"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="di=%D%{pg8~_vo^?4jR|"><field name="VAR" id="6ugt)*wrP!d)899*Q]gV">started</field></block></value><value name="B"><shadow type="math_number" id="r_j1*(WL/ff$c/yQGmOL"><field name="NUM">1</field></shadow></value></block></value><statement name="DO0"><block type="particlesclearparticles" id=";a#RVfX61u3#eJ]~:Kz?"><value name="anchor"><block type="variables_get" id="]{Ndg,-KIr)zTwaWVrvx"><field name="VAR" id="4H3]E$IQu$,A+9$q3z9d">car_back</field></block></value><next><block type="mixer_play_sound" id="%749,]3/R1OE53d/0X}~"><field name="sound">music.jumpUp</field><next><block type="spritesetvel" id="}dbB3(neCjl7=^sL+#1V"><value name="sprite"><block type="variables_get" id="38AxwPKwfim7=-vjA|Ot"><field name="VAR" id="mjrRd1ZNDRg=t|0jN=hC">car</field></block></value><value name="vx"><shadow type="spriteSpeedPicker" id="uCg;2}$CqP{s;]mY46W}"><field name="speed">0</field></shadow></value><value name="vy"><shadow type="spriteSpeedPicker" id="V`Qay:BM?EoonS?1S?`-"><field name="speed">-75</field></shadow></value><next><block type="spritesetimage" id="Lk*^uWnHoSI3ix.C2%,;"><value name="sprite"><block type="variables_get" id="zd[n2Z7oe^Wg66sL/x/H"><field name="VAR" id="mjrRd1ZNDRg=t|0jN=hC">car</field></block></value><value name="img"><shadow type="screen_image_picker" id="]v5il1vBy[$iunWTTm6S"><field name="img">assets.image`car_red_up_0`</field><data>{"commentRefs":[],"fieldData":{"img":"myImages.image2"}}</data></shadow></value><next><block type="device_pause" id="92[E,_N~5l]}~xV8btsB"><value name="pause"><shadow type="timePicker" id="w0=Ph0I~1wcAGMN[,c91"><field name="ms">100</field></shadow></value><next><block type="spritesetimage" id="g$;dKk`4z$d^jh(:(]|l"><value name="sprite"><block type="variables_get" id="|:Xw}j*MvFI(CfrADThL"><field name="VAR" id="mjrRd1ZNDRg=t|0jN=hC">car</field></block></value><value name="img"><shadow type="screen_image_picker" id="W{Dit8,6bR]}so?IBya2"><field name="img">assets.image`car_red_up_1`</field><data>{"commentRefs":[],"fieldData":{"img":"myImages.image3"}}</data></shadow></value><next><block type="device_pause" id="@,fhX?vI!!IjnYZU?UA%"><value name="pause"><shadow type="timePicker" id="?aUx@@+,z78ln0`7r%W]"><field name="ms">200</field></shadow></value><next><block type="spritesetvel" id="DA+O`R,^Ph|PAG])FxJ,"><value name="sprite"><block type="variables_get" id="$a$*bc70oNn`EOyYE=oX"><field name="VAR" id="mjrRd1ZNDRg=t|0jN=hC">car</field></block></value><value name="vx"><shadow type="spriteSpeedPicker" id="idV~-5}slmC)d0`RBqSN"><field name="speed">0</field></shadow></value><value name="vy"><shadow type="spriteSpeedPicker" id="F^3*2VykwpZ8OQmt4`$U"><field name="speed">75</field></shadow></value><next><block type="spritesetimage" id="^.Hb7I?zFAm9v+3W?@u."><value name="sprite"><block type="variables_get" id="Cdt-,;Af57qjnRxt#f~v"><field name="VAR" id="mjrRd1ZNDRg=t|0jN=hC">car</field></block></value><value name="img"><shadow type="screen_image_picker" id="oXMr,2w?W7e(G8Ot-^Zn"><field name="img">assets.image`car_red_up_0`</field><data>{"commentRefs":[],"fieldData":{"img":"myImages.image2"}}</data></shadow></value><next><block type="device_pause" id="@Jn?p+Q}kI8Q4zQr_mHw"><value name="pause"><shadow type="timePicker" id="XL`0?KjE.D%/wL2%3T3n"><field name="ms">300</field></shadow></value><next><block type="spritesetvel" id="J!8^|k7A]}Z|ptwKsK(y"><value name="sprite"><block type="variables_get" id=".HtKoU?1aG~-wx.K%qc0"><field name="VAR" id="mjrRd1ZNDRg=t|0jN=hC">car</field></block></value><value name="vx"><shadow type="spriteSpeedPicker" id="E!KS)v.21Wup63I}!CS!"><field name="speed">0</field></shadow></value><value name="vy"><shadow type="spriteSpeedPicker" id="(p231sgc[Ec=UR?DoN%w"><field name="speed">0</field></shadow></value><next><block type="spritesetimage" id="VjAVOm.aEQKkpz;+s,ij"><value name="sprite"><block type="variables_get" id="5%xG[A8LQKuu8.xOZ0LF"><field name="VAR" id="mjrRd1ZNDRg=t|0jN=hC">car</field></block></value><value name="img"><shadow type="screen_image_picker" id="R=!0j7e,T3dmofo(m=|X"><field name="img">assets.image`car_red`</field><data>{"commentRefs":[],"fieldData":{"img":"myImages.g11E||*dyczZhz;vp3tW"}}</data></shadow></value><next><block type="startEffectOnSprite" id="b=[F({Ng9y}WZw$@Ef0L"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="0" _input_init="false"></mutation><field name="effect">effects.spray</field><value name="sprite"><block type="variables_get" id="9v9cCv8+,G?acFEdh5)z"><field name="VAR" id="4H3]E$IQu$,A+9$q3z9d">car_back</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></statement></block><block type="pxt-on-start" id=".:_k6FCptlJw)a7+BWao" x="0" y="0"><statement name="HANDLER"><block type="variables_set" id="Yu{slE5d#:4ZH][AR{$}"><field name="VAR" id="6ugt)*wrP!d)899*Q]gV">started</field><value name="VALUE"><shadow type="math_number" id="f:VOmrk=(ST;lybA40X."><field name="NUM">0</field></shadow></value><next><block type="playMelody" id="-0Z`|2q]e4oq#qv@f@R("><value name="melody"><shadow type="melody_editor" id="T{Ap8].}E!n(m?YDJH~{"><field name="melody">"E - C5 - - G - F "</field></shadow></value><value name="tempo"><shadow type="math_number_minmax" id="_7Opt9D*N7RwI!cy2$%("><mutation min="40" max="500" label="Number" precision="0"/><field name="SLIDER">240</field></shadow></value><next><block type="builtin_neopixel_show_animation" id="CM:1Xf_KlHPP,.2]z@[w"><value name="animation"><shadow type="light_animation_picker" id="6P|Vc5//~O6Cb2g#sr}e"><field name="animation">light.cometAnimation</field></shadow></value><value name="duration"><shadow type="timePicker" id="Q21P|WV6iM1zllj#YmAg"><field name="ms">1</field></shadow></value><next><block type="builtin_neopixel_set_brightness" id="?T(:s?2u=2nK5#.O0nu#"><value name="brightness"><shadow type="math_number_minmax" id="0@[(v^uOXUYG#I{;wS;A"><mutation min="0" max="255" label="Number" precision="0"/><field name="SLIDER">20</field></shadow></value><next><block type="gamesetbackgroundimage" id="hAcm.4bg%jjNa]d#oX-~"><value name="img"><shadow type="background_image_picker" id="TC-[zvcUWyt:r(F2LX:K"><field name="img">assets.image`sunset_retro`</field><data>{"commentRefs":[],"fieldData":{"img":"myImages.l7|]))`b$2IgvGvGyw7S"}}</data></shadow></value><next><block type="variables_set" id="zx%{u3xiiR,[9eOi]xMG"><field name="VAR" id="UvVGjl((ewo;n}n|+6e9">road_mark</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="spritescreate" id="^T4ENIN(9wnHw*h)Go6i"><value name="img"><shadow type="screen_image_picker" id="gh7[Xn-h-nX_HvG6V@,%"><field name="img">assets.image`line_road`</field><data>{"commentRefs":[],"fieldData":{"img":"myImages.OekL9P~Zw`[sFy;2f"}}</data></shadow></value><value name="kind"><shadow type="spritekind" id="/y=[$f=AdKb3M(6q%vpu"><field name="MEMBER">animated</field></shadow></value></block></value><next><block type="spritesetpos" id="$hhkQi*j@z?p2ivp~`M#"><value name="sprite"><block type="variables_get" id="l,Ua_bZ11$:1H(BQNGV{"><field name="VAR" id="UvVGjl((ewo;n}n|+6e9">road_mark</field></block></value><value name="x"><shadow type="positionPicker" id=",6X//idc%aK%_d{%7WGm"><field name="index">80</field></shadow></value><value name="y"><shadow type="positionPicker" id="D_.jo,/|/SnPHXVH:iIL"><field name="index">92</field></shadow></value><next><block type="run_image_animation" id="WEadmj^3v49){5becwBm"><value name="sprite"><shadow type="variables_get" id="i^+-u9MA6pXAbH~[.46s"><field name="VAR" id="UvVGjl((ewo;n}n|+6e9">road_mark</field></shadow></value><value name="frames"><shadow type="animation_editor" id="ra]dT}VqbLMTZ0D{vN*X"><field name="frames">assets.animation`road_anim`</field><data>{"commentRefs":[],"fieldData":{"frames":"myImages.1CbMz{a,$~!=s!O{:XRo"}}</data></shadow></value><value name="frameInterval"><shadow type="timePicker" id="14oPLE51cg+P0`rL/]]*"><field name="ms">50</field></shadow></value><value name="loop"><shadow type="toggleOnOff" id="6Q[U@Hf7jO,N`[EZKUuJ"><field name="on">true</field></shadow></value><next><block type="variables_set" id="a?D8:.MI_=T3R)C+QBl`"><field name="VAR" id="mjrRd1ZNDRg=t|0jN=hC">car</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="spritescreate" id="tu:s|+7$jW7xF7H[gr@w"><value name="img"><shadow type="screen_image_picker" id="~m5[[w?2V^4f0iF$:4MD"><field name="img">assets.image`car_red`</field><data>{"commentRefs":[],"fieldData":{"img":"myImages.g11E||*dyczZhz;vp3tW"}}</data></shadow></value><value name="kind"><shadow type="spritekind" id="KXku~UWN3B6/QQLl=Hbz"><field name="MEMBER">Player</field></shadow></value></block></value><next><block type="spritesetpos" id="Xr|h`P-fH|6H-x1JK{s3"><value name="sprite"><block type="variables_get" id="f!vljI3RQht6e:?%k*dc"><field name="VAR" id="mjrRd1ZNDRg=t|0jN=hC">car</field></block></value><value name="x"><shadow type="positionPicker" id="?BjWK2/_de3XM}l|S_}o"><field name="index">80</field></shadow></value><value name="y"><shadow type="positionPicker" id="vJG@`qQ7zDU$0_=CC6dI"><field name="index">100</field></shadow></value><next><block type="variables_set" id="!M{(%e?$r=ATvRpTvL/t"><field name="VAR" id="4H3]E$IQu$,A+9$q3z9d">car_back</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="spritescreate" id="a7Fx9dN{1-4+p;8p$K(G"><value name="img"><shadow type="screen_image_picker" id="EU/9MG.dC{E|:C]jYBFL"><field name="img">assets.image`blank`</field><data>{"commentRefs":[],"fieldData":{"img":"myImages.image1"}}</data></shadow></value><value name="kind"><shadow type="spritekind" id="p-eW~FBr,5[|79h_v*!4"><field name="MEMBER">animated</field></shadow></value></block></value><next><block type="spritesetpos" id="u)Og7,8p,7KV1Y6lQE:("><value name="sprite"><block type="variables_get" id="Gj)9nN(K{,BKAK/SMnqX"><field name="VAR" id="4H3]E$IQu$,A+9$q3z9d">car_back</field></block></value><value name="x"><shadow type="positionPicker" id="y/Gq|%;Y(5)q$Qu;uDv$"><field name="index">80</field></shadow></value><value name="y"><shadow type="positionPicker" id="m}%rLiCA[yKqvsbJN[f4"><field name="index">110</field></shadow></value><next><block type="startEffectOnSprite" id="M[wp{S+p]q{(28j:!/BF"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="0" _input_init="false"></mutation><field name="effect">effects.spray</field><value name="sprite"><block type="variables_get" id="p0(iccVQt)J{asHcx#%b"><field name="VAR" id="4H3]E$IQu$,A+9$q3z9d">car_back</field></block></value><next><block type="game_control_sprite" id="U8o7(C98@S^!7uuB@+Rd"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="2" _input_init="true"></mutation><value name="sprite"><shadow type="variables_get" id="T~fh?)(b}1)s5{*k5=2R"><field name="VAR" id="mjrRd1ZNDRg=t|0jN=hC">car</field></shadow></value><value name="vx"><shadow type="spriteSpeedPicker" id="Oq1s@Bba8WZsu_[4Wods"><field name="speed">100</field></shadow></value><value name="vy"><shadow type="spriteSpeedPicker" id="{cBo.dz~V^eFs$J}PE;P"><field name="speed">0</field></shadow></value><next><block type="spritesetsetstayinscreen" id="[6vJGzL!oQZM5/sKBtPq"><value name="sprite"><block type="variables_get" id="@B35gx-S/mIbGPI1T9Gk"><field name="VAR" id="mjrRd1ZNDRg=t|0jN=hC">car</field></block></value><value name="on"><shadow type="toggleOnOff" id="G;}`5$%ABiw#4(BfE[x#"><field name="on">true</field></shadow></value><next><block type="game_control_sprite" id="!SVaf3I(YX@sX9@s{BXJ"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="2" _input_init="true"></mutation><value name="sprite"><shadow type="variables_get" id="X:SuRA@=;9dH+I^u4a@`"><field name="VAR" id="4H3]E$IQu$,A+9$q3z9d">car_back</field></shadow></value><value name="vx"><shadow type="spriteSpeedPicker" id="J9L0bScII-Hhy)^4@v=#"><field name="speed">100</field></shadow></value><value name="vy"><shadow type="spriteSpeedPicker" id="FC+c(4L8uCQKWn-gaULS"><field name="speed">0</field></shadow></value><next><block type="spritesetsetstayinscreen" id="FIiuUY3Q_I`H~B}V9ET1"><value name="sprite"><block type="variables_get" id="L|Qf$NH3/;z6{O8,b%k$"><field name="VAR" id="4H3]E$IQu$,A+9$q3z9d">car_back</field></block></value><value name="on"><shadow type="toggleOnOff" id="E~wHEd}NuqAMPAjsS7H~"><field name="on">true</field></shadow></value><next><block type="variables_set" id="?jgs`K/X9JOd4|-9ahuU"><field name="VAR" id="6ugt)*wrP!d)899*Q]gV">started</field><value name="VALUE"><shadow type="math_number" id=")~h[^PYl+YN|zvZJ!8q}"><field name="NUM">1</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="keyonevent" id="VQhab#wVRsO;uY)}9glI" x="635" y="0"><field name="button">controller.B</field><field name="event">ControllerButtonEvent.Pressed</field><statement name="HANDLER"><block type="controls_if" id="c$70?yzHmIZb)($L4ba["><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="`[a@Er`1/}zPW)iZ}T~)"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="FkcnrOchEJ1:izI9[tSi"><field name="VAR" id="6ugt)*wrP!d)899*Q]gV">started</field></block></value><value name="B"><shadow type="math_number" id=".lJZ/R8jR]a@XWn5Bpuk"><field name="NUM">1</field></shadow></value></block></value><statement name="DO0"><block type="mixer_play_sound" id="qG-jq1o)IjaPF|o}OT=w"><field name="sound">music.knock</field><next><block type="mixer_play_sound" id="Q:+sWV8p8D,`m]WCQ(Uo"><field name="sound">music.thump</field><next><block type="mixer_play_sound" id="K;gm+$+)se%qd(kGtfU)"><field name="sound">music.smallCrash</field><next><block type="mixer_play_sound" id="U$dfFcAh{E`r7dhWk?-A"><field name="sound">music.zapped</field><next><block type="spritedestroy" id="x6nenuf#@Dy33lT|jH,`"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="2" _input_init="true"></mutation><field name="effect">effects.fire</field><value name="sprite"><block type="variables_get" id="eHH8p?^bS#/vH?nCH%t*"><field name="VAR" id="mjrRd1ZNDRg=t|0jN=hC">car</field></block></value><value name="duration"><shadow type="timePicker" id="Nk:3Q_a.D_=KoY8J?=Op"><field name="ms">100</field></shadow></value><next><block type="spritedestroy" id="rC:*hVaZKX779obv1gNK"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="2" _input_init="true"></mutation><field name="effect">effects.fire</field><value name="sprite"><block type="variables_get" id="$_NT3ZeC!FdJN7o|H{U`"><field name="VAR" id="4H3]E$IQu$,A+9$q3z9d">car_back</field></block></value><value name="duration"><shadow type="timePicker" id="G~K7Ya,`j),Ko%L8{2+Q"><field name="ms">200</field></shadow></value><next><block type="builtin_neopixel_show_animation" id="wZU5eq.7/Lu?df{Yj;Xe"><value name="animation"><shadow type="light_animation_picker" id="iEq:hO}=b!nb3eLF76Q0"><field name="animation">light.theaterChaseAnimation</field></shadow></value><value name="duration"><shadow type="timePicker" id="ryysA(=1CdXdd}yV5g1B"><field name="ms">100</field></shadow></value><next><block type="builtin_neopixel_set_strip_color" id="w9AJdXaNF7dJI#+p:~?!"><value name="rgb"><shadow type="colorNumberPicker" id="YxCnZD-2,_,-`H2NJm$."><field name="value">0xff0000</field></shadow></value><next><block type="playMelody" id="03~rD3q#k%O!,]sxKC$C"><value name="melody"><shadow type="melody_editor" id="37Au@ROb7dw{~5S:6krK"><field name="melody">"E - C5 - G F E C "</field></shadow></value><value name="tempo"><shadow type="math_number_minmax" id="$ee,JPwx#)F|dqk|ok#x"><mutation min="40" max="500" label="Number" precision="0"/><field name="SLIDER">240</field></shadow></value><next><block type="gameSplash" id="]|,[b8$^^UEw(+}-qz|*"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="1" _input_init="true"></mutation><value name="title"><shadow type="text" id="XN1zpN3_Y`g|3|R$62:B"><field name="TEXT">GAME OVER!</field></shadow></value><value name="subtitle"><shadow type="text" id="$5SfTUdnGDTj9~yO]sE+"><field name="TEXT">Try again?</field></shadow></value><next><block type="arcade_game_reset" id="~6|$RUHE/BjLO{d-Zx9a"/></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></statement></block><block type="spritesoverlap" id="QhtWc2eZ4@~I|?`7wa+e" x="1889" y="0"><value name="HANDLER_DRAG_PARAM_sprite"><shadow type="argument_reporter_custom" id="9dAAV1Y=+d0C;bEw5OrV"><mutation typename="Sprite"/><field name="VALUE">sprite</field></shadow></value><value name="kind"><shadow type="spritekind" id="[kmtUx7-wGu*E]{r/3fA"><field name="MEMBER">Player</field></shadow></value><value name="HANDLER_DRAG_PARAM_otherSprite"><shadow type="argument_reporter_custom" id="Cyfz~#*+e:rZ~w4_SKz@"><mutation typename="Sprite"/><field name="VALUE">otherSprite</field></shadow></value><value name="otherKind"><shadow type="spritekind" id="r5GcXc0C!7pi5+poD3E~"><field name="MEMBER">Enemy</field></shadow></value></block></xml>