Repository navigation
Expand file tree
/
Copy pathmain.blocks
More file actions
7 lines (7 loc) · 11.9 KB
/
Copy pathmain.blocks
File metadata and controls
7 lines (7 loc) · 11.9 KB
1
2
3
4
5
6
7
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="YsV:f?X7%v!Nb%eROtFV">type</variable><variable id="En`E#T,DZmetib;O}^Gv">plane</variable><variable id="{F4B5}0Q{Cl+=F9AndsK">sprite</variable><variable id="krLCHJ64FB~xl2=T!3n,">pin?</variable></variables><block type="function_definition" id="^g[RPKoZ?EFKi5v07_7m" x="-3250" y="-306"><mutation name="g-force" functionid="K?RRvmKvJNu[Qp8s,w0q"></mutation><field name="function_name">g-force</field><statement name="STACK"><block type="device_show_number" id=":_WJwD_gZk9),2^SguN("><value name="number"><shadow type="math_number" id="()%wWh5VnQ,zLg}`6{M^"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="%n5D-JgK_7ITK;rS=YH/"><field name="OP">DIVIDE</field><value name="A"><shadow type="math_number" id="BcY;c4p`q?.pTQ#5}c0H"><field name="NUM">0</field></shadow><block type="device_acceleration" id="O+W/CQCMpEg{6p8g$.#B"><field name="NAME">Dimension.Strength</field></block></value><value name="B"><shadow type="math_number" id="Mi_Y(.X[xqbVBD+!O((N"><field name="NUM">1000</field></shadow></value></block></value></block></statement></block><block type="device_forever" id="N?olg?IM:E#pQ3.HpRQ5" x="-1450" y="-231"><statement name="HANDLER"><block type="controls_if" id="eN9w^ZE2c}T?n*Qg#eK8"><mutation elseif="1"></mutation><value name="IF0"><shadow type="logic_boolean" id="`JXvvVI2:(Q-#u_.jE-P"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="LQPG6trdDM$;h!QR{/[a"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="[M;2d;]-5yD`88j(s:8E"><field name="NUM">0</field></shadow><block type="variables_get" id="4Ye:b1.XS,T9EDP3MRj9"><field name="VAR" id="YsV:f?X7%v!Nb%eROtFV">type</field></block></value><value name="B"><shadow type="math_number" id="e/nM,7QjUMH_Tp|_@GM:"><field name="NUM">1</field></shadow></value></block></value><statement name="DO0"><block type="function_call" id="rd#:YBJH`VJ-x0ABPq:-"><mutation name="gyroscope" functionid="BvN|uAHuTlanKpJVNd7R"></mutation></block></statement><value name="IF1"><shadow type="logic_boolean" id="x5W/NgA6U|mgYtSa`5t,"><field name="BOOL">FALSE</field></shadow><block type="logic_compare" id="?.+*U07xh=dE~qENBu6("><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="CSuQbCLZ8rB30tzng=wi"><field name="NUM">0</field></shadow><block type="variables_get" id="joCe:RQ8NMZ:wb:uawjy"><field name="VAR" id="YsV:f?X7%v!Nb%eROtFV">type</field></block></value><value name="B"><shadow type="math_number" id="`IGNU5g:)Z=(SQ%{P1!V"><field name="NUM">2</field></shadow></value></block></value><statement name="DO1"><block type="function_call" id="=I9jqXER5Iw~mLY=L@.x"><mutation name="g-force" functionid="K?RRvmKvJNu[Qp8s,w0q"></mutation></block></statement></block></statement></block><block type="function_definition" id="Y2K`Mw5srZ:t|E%!s[kb" x="-3256" y="-26"><mutation name="gyroscope" functionid="BvN|uAHuTlanKpJVNd7R"></mutation><field name="function_name">gyroscope</field><statement name="STACK"><block type="variables_set" id="ZAs}%mi7(]Up-sJZf9.,"><field name="VAR" id="En`E#T,DZmetib;O}^Gv">plane</field><value name="VALUE"><shadow type="math_number" id="-`.6,e{Ip6:@5]AlKmto" disabled-reasons="pxt_automatic_disabled"><field name="NUM">0</field></shadow><block type="game_create_sprite" id="XDSQi)S3vS}`{8YJY49e"><value name="x"><shadow type="math_number" id="-;6]?TJr7985WN^K6A_j"><field name="NUM">2</field></shadow></value><value name="y"><shadow type="math_number" id="4Frz4hpD(`CXIc9483Xs"><field name="NUM">2</field></shadow></value></block></value><next><block type="controls_if" id="cyo9JP.b5ESh]e8uzK|4"><mutation elseif="4" else="1"></mutation><value name="IF0"><shadow type="logic_boolean" id="e~9n4*H[,9iIsL7(M0Zl"><field name="BOOL">TRUE</field></shadow><block type="logic_operation" id="IkIS-gQ1y1w9OcXVx3]B"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="pw3a1p}eWqZTTYWk%0,K"><field name="OP">LTE</field><value name="A"><shadow type="math_number" id="b.i2MJcF1Wvp7tTNY=T["><field name="NUM">0</field></shadow><block type="device_get_rotation" id="LZF~u3wkvtTT|vCU(qT$"><field name="NAME">Rotation.Roll</field></block></value><value name="B"><shadow type="math_number" id="N?TU1Dod8+dw.o@tgxrU"><field name="NUM">15</field></shadow></value></block></value><value name="B"><block type="logic_compare" id=".]-v1-#jVh$sYK[+QQqm"><field name="OP">GT</field><value name="A"><shadow type="math_number" id="oMuCQH,U8=BZ6F{S%01_"><field name="NUM">0</field></shadow><block type="device_get_rotation" id="mn$.Ftw4Drn{{uQVbxFD"><field name="NAME">Rotation.Roll</field></block></value><value name="B"><shadow type="math_number" id="bqNM)Dh|1c@W}eWQp9Hx"><field name="NUM">0</field></shadow></value></block></value></block></value><statement name="DO0"><block type="game_sprite_set_property" id="@nD@ta-*,T($TDY+#_w;"><field name="property">LedSpriteProperty.X</field><value name="sprite"><block type="variables_get" id="^Z]U}W9YP*7hJVyM!k9%"><field name="VAR" id="En`E#T,DZmetib;O}^Gv">plane</field></block></value><value name="value"><shadow type="math_number" id="6A8-)~K!^1Chw:}*}^Nm"><field name="NUM">3</field></shadow></value></block></statement><value name="IF1"><shadow type="logic_boolean" id="k9?`Io7Ox!dS42iQEBXT"><field name="BOOL">FALSE</field></shadow><block type="logic_operation" id="kVknY,C=hesxVP?-6X)t"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="5x4.B23SMhL,QsM9,Btb"><field name="OP">LTE</field><value name="A"><shadow type="math_number" id="9Q{S(.KxKC@:pU~cj$mj"><field name="NUM">0</field></shadow><block type="device_get_rotation" id="s1:@YttK!A,l9^?L7#{#"><field name="NAME">Rotation.Roll</field></block></value><value name="B"><shadow type="math_number" id="d%4T+hY!$qh}/_~`+M)#"><field name="NUM">35</field></shadow></value></block></value><value name="B"><block type="logic_compare" id="I]IJWU|Um7F23iSlyuqh"><field name="OP">GT</field><value name="A"><shadow type="math_number" id="}3ip@7=V3lfxwu;Ni1Y3"><field name="NUM">0</field></shadow><block type="device_get_rotation" id="4w|g6PYISbgBQt^6gj]8"><field name="NAME">Rotation.Roll</field></block></value><value name="B"><shadow type="math_number" id="njV*x_2nSHD|^rHCp[S:"><field name="NUM">15</field></shadow></value></block></value></block></value><statement name="DO1"><block type="game_sprite_set_property" id="yW6U#NOI)s^$;oA=jD-J"><field name="property">LedSpriteProperty.X</field><value name="sprite"><block type="variables_get" id="4$8vj]dQVdz-y^roL6=N"><field name="VAR" id="En`E#T,DZmetib;O}^Gv">plane</field></block></value><value name="value"><shadow type="math_number" id="c:d2zbbBpkvQcCXT_4$f"><field name="NUM">4</field></shadow></value></block></statement><value name="IF2"><shadow type="logic_boolean" id="M7setpQdU:C:*RD(~XAn"><field name="BOOL">FALSE</field></shadow><block type="logic_operation" id="wyp[RlcqgL*,KT[).bPQ"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="|,aD(+0D}ifPcVcM?#iK"><field name="OP">GTE</field><value name="A"><shadow type="math_number" id="8S/!vPySL4uM?kApz:Ij"><field name="NUM">0</field></shadow><block type="device_get_rotation" id="TNw_]Ia~7,t2S$.6%cC7"><field name="NAME">Rotation.Roll</field></block></value><value name="B"><shadow type="math_number" id="~_[~.WrKh28g@ym8Y.bQ"><field name="NUM">325</field></shadow></value></block></value><value name="B"><block type="logic_compare" id="t@e=[cM?w!$BW3V,mA/="><field name="OP">LTE</field><value name="A"><shadow type="math_number" id="KgHSHX!+I9Rxous1hB4v"><field name="NUM">0</field></shadow><block type="device_get_rotation" id="l(!VMj%P$]Z;H}gEEekZ"><field name="NAME">Rotation.Roll</field></block></value><value name="B"><shadow type="math_number" id="tO0.0E2/V-t{CZ%q9@$5"><field name="NUM">359</field></shadow></value></block></value></block></value><value name="IF3"><shadow type="logic_boolean" id="vPn[1zPCXs~roW)[b{dY"><field name="BOOL">FALSE</field></shadow></value><value name="IF4"><shadow type="logic_boolean" id="RqnL_%#v@i]D-5Z*9p)7"><field name="BOOL">FALSE</field></shadow></value></block></next></block></statement></block><block type="device_button_event" id="?Ei,8l{R]oYhk(sXk?64" x="430" y="-40"><field name="NAME">Button.A</field><statement name="HANDLER"><block type="device_while" id="CtdY(_M2okUb^ElOL(gs"><value name="COND"><shadow type="logic_boolean" id="q]DO^G]NiHZSif;t%N-P"><field name="BOOL">FALSE</field></shadow><block type="logic_operation" id="Z%urX$NT0Gr-jU}fprHI"><field name="OP">OR</field><value name="A"><block type="logic_operation" id="Je9Mghw2R*i5n.TBTS-o"><field name="OP">OR</field><value name="A"><block type="logic_compare" id="9.*ru#J!sjI?@*70DC9O"><field name="OP">GT</field><value name="A"><shadow type="math_number" id="2`g#FSi(-N~1N8zJveTA"><field name="NUM">-2</field></shadow></value><value name="B"><shadow type="math_number" id="^9GUU;AsN%W|7OXyscf@"><field name="NUM">0</field></shadow><block type="device_get_rotation" id="~9xC~(*SKULbiyV)F|WG"><field name="NAME">Rotation.Pitch</field></block></value></block></value><value name="B"><block type="logic_compare" id="X,]mbr3C//lt@N|0g+,^"><field name="OP">GT</field><value name="A"><shadow type="math_number" id="A{Erj,z3e~fHB!^!o|Ay"><field name="NUM">0</field></shadow><block type="device_get_rotation" id="l~+WUY|5-rTZR-uMOLQI"><field name="NAME">Rotation.Pitch</field></block></value><value name="B"><shadow type="math_number" id="Zv./UQMSqiv4UCuK|LDr"><field name="NUM">2</field></shadow></value></block></value></block></value><value name="B"><block type="logic_operation" id="UpY0nX@x?TdpgTW%A^BO"><field name="OP">OR</field><value name="A"><block type="logic_compare" id="08BEl[FP]0D}V~g6z;_Z"><field name="OP">GT</field><value name="A"><shadow type="math_number" id="zz,2;1Y(@J=sGp!CU#/s"><field name="NUM">-2</field></shadow></value><value name="B"><shadow type="math_number" id="^9GUU;AsN%W|7OXyscf@"><field name="NUM">0</field></shadow><block type="device_get_rotation" id="@fGk!PY7@oMU0BccD(bb"><field name="NAME">Rotation.Roll</field></block></value></block></value><value name="B"><block type="logic_compare" id="NeN1yjG^F`M7!~:AnHhP"><field name="OP">GT</field><value name="A"><shadow type="math_number" id="A{Erj,z3e~fHB!^!o|Ay"><field name="NUM">0</field></shadow><block type="device_get_rotation" id="U#xa0j#QGaSYA0%k/h1:"><field name="NAME">Rotation.Roll</field></block></value><value name="B"><shadow type="math_number" id="Usa$V+lMr@Z)l+2DC|}J"><field name="NUM">2</field></shadow></value></block></value></block></value></block></value><statement name="DO"><block type="device_show_leds" id="a_kBDY_YC]HM#.dc@;2L"><field name="LEDS">`
. . . . .
. # . # .
. . . . .
. # # # .
# . . . #
`</field></block></statement><next><block type="device_clear_display" id="YK1/pc,4KN+[i-S:]qjI"><next><block type="variables_set" id="dPY.7ZO+iZ-Mj$i:sWnh"><field name="VAR" id="YsV:f?X7%v!Nb%eROtFV">type</field><value name="VALUE"><shadow type="math_number" id="UyA:e@hU~GxH)TS:lLrj"><field name="NUM">1</field></shadow></value></block></next></block></next></block></statement></block><block type="pxt-on-start" id="M`|ZDAKe0FzNQC+qe=8-" x="-189" y="14"><statement name="HANDLER"><block type="device_set_accelerometer_range" id="+GrwWz{z?Dcr-4p@@Fqp"><field name="range">AcceleratorRange.EightG</field><next><block type="variables_set" id="):c|B49DlYA_:n4|K,xZ"><field name="VAR" id="YsV:f?X7%v!Nb%eROtFV">type</field><value name="VALUE"><shadow type="math_number" id="42J[Bo4CHl5_}H)uDtva"><field name="NUM">0</field></shadow></value><next><block type="device_clear_display" id="FUrh`@9E~Yr}xD|BNe]-"></block></next></block></next></block></statement></block><block type="device_button_event" id="3ousU3C{E%[{tFoZ|zyO" x="424" y="536"><field name="NAME">Button.B</field><statement name="HANDLER"><block type="variables_set" id="[%]qj;m@YqN^,6~[VhYI"><field name="VAR" id="YsV:f?X7%v!Nb%eROtFV">type</field><value name="VALUE"><shadow type="math_number" id="T2S?w9rAA$Aj1^6Srp?)"><field name="NUM">2</field></shadow></value><next><block type="device_clear_display" id="Y[|8{~uR#Yby!0E)iKEE"></block></next></block></statement></block></xml>