1 line
13 KiB
XML
1 line
13 KiB
XML
<xml version="Mixly 3.0 rc0" board="Python ESP32-S3@元控青春(NOVA)" shown="block"><block type="variables_set" id="tIW?:cw8m$OTwDlk$16u" x="-3434" y="-908"><field name="VAR">图像编号</field><value name="VALUE"><block type="math_number" id="L1!fv2.PFIESD-YV~_y?"><field name="NUM">0</field></block></value><next><block type="variables_set" id="#IMjJv[pN?O2.,?g@BHI"><field name="VAR">游戏得分</field><value name="VALUE"><block type="math_number" id=",ez,xS4#[o]7e;(2xyD;"><field name="NUM">0</field></block></value><next><block type="variables_set" id="yxp5~nI}m1M(}*qxv5^)"><field name="VAR">亮屏时刻</field><value name="VALUE"><block type="math_number" id="YtRL#!6`MX1aTR-:(p7B"><field name="NUM">0</field></block></value><next><block type="variables_set" id="]mAdi2n-qb`s|wN$SIU|"><field name="VAR">按下时刻</field><value name="VALUE"><block type="math_number" id="G2;!q;}4)p_iS212zh9="><field name="NUM">0</field></block></value><next><block type="tuple_create_with" id="V3cP.cQM]ppoofc3/!V," inline="true"><mutation items="4"></mutation><field name="VAR">图像集合</field><value name="ADD0"><block type="text" id="R;S@2rYZO..I2(IpVjo."><field name="TEXT">↓</field></block></value><value name="ADD1"><block type="text" id="[yGLg-fj)yFY0,ju,s75"><field name="TEXT">←</field></block></value><value name="ADD2"><block type="text" id="M{Xxjz#Y[g-,+G6+6=Sa"><field name="TEXT">↑</field></block></value><value name="ADD3"><block type="text" id="HfT14B@L{kB}++dEUNMc"><field name="TEXT">→</field></block></value><next><block type="controls_whileUntil" id="rAV5)LR7[8jVd9k[@Ysz"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="|Pu3*DthT^1Oh.)BqbpN"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="controls_delay_new" id="aLEq`.,}u]pQ``[P30p8"><field name="Time">s</field><value name="DELAY_TIME"><shadow type="math_number" id="f*-1Dp+l[Z$pnJou*IK^"><field name="NUM">1</field></shadow><block type="math_random" id="@WbFcCik_BRV}}~9p}RK"><field name="TYPE">float</field><value name="FROM"><shadow type="math_number" id="L~xC:^!)ET:cA|4(/#ns"><field name="NUM">0</field></shadow></value><value name="TO"><shadow type="math_number" id="AC;}eUC:9zMXdHQxqmOk"><field name="NUM">1</field></shadow></value></block></value><next><block type="variables_set" id="w*XgC.}?(Y6Zf8m.mse/"><field name="VAR">图像编号</field><value name="VALUE"><block type="math_random" id="z[(8[OqjDue|qrFmOzjh"><field name="TYPE">int</field><value name="FROM"><shadow type="math_number" id="C!neeFJ!IM8`yS4)*Nu?"><field name="NUM">0</field></shadow></value><value name="TO"><shadow type="math_number" id="eH.0No07JO5VQ/!+llU#"><field name="NUM">3</field></shadow></value></block></value><next><block type="display_show_image_or_string_delay" id="xgWA$u6Jnuz[!`:I((J@"><field name="center">True</field><value name="data"><shadow type="text" id=":DnN+eD+El/+:])aQXUI"><field name="TEXT">Mixly</field></shadow><block type="tuple_getIndex" id="?Z?-Fxz;Pg@UTWg38|3W"><value name="TUP"><shadow type="variables_get" id="2O=AGRZV|$a#0|)kGk*K"><field name="VAR">图像集合</field></shadow></value><value name="AT"><shadow type="math_number" id="pRNK2?:A|]~a~Y7ym=4L"><field name="NUM">0</field></shadow><block type="variables_get" id="-bVOb#Pl1ON-9PllKE5`"><field name="VAR">图像编号</field></block></value></block></value><value name="space"><shadow type="math_number" id="SJk3c7(1!ezO37(?nJCj"><field name="NUM">0</field></shadow></value><value name="boolean"><shadow type="logic_boolean" id="Ev1!+#0(D)g9J@ZykSiE"><field name="BOOL">TRUE</field></shadow></value><next><block type="variables_set" id="lixq?24l*PwJ^ex*hU;H"><field name="VAR">亮屏时刻</field><value name="VALUE"><block type="controls_millis" id="Eyt15o{{Jj)X=aP:e]fp"><field name="Time">ms</field></block></value><next><block type="do_while" id="9$+b1LASV?TI^HM;#2b7"><field name="type">true</field><value name="select_data"><block type="logic_operation" id=".(US#X`hl{UeZ6MD):Z]"><field name="OP">OR</field><value name="A"><block type="logic_operation" id="E~[b+FE~db?[E+WyIX4y"><field name="OP">OR</field><value name="A"><block type="sensor_mixgo_button_is_pressed" id="$fdl)Ef,tLF5F-{$+N6V"><value name="btn"><shadow type="pins_button" id="h(h/Ym$-WgkGA(O.kODB"><field name="PIN">A1key</field></shadow></value></block></value><value name="B"><block type="sensor_mixgo_button_is_pressed" id="(W;5HEGh{_TUX2I9BpCO"><value name="btn"><shadow type="pins_button" id="#~8rm1Vmkr=pL:(fYg1Z"><field name="PIN">A2key</field></shadow></value></block></value></block></value><value name="B"><block type="logic_operation" id="KtX(7LYi0jK~:ju+wVxE"><field name="OP">OR</field><value name="A"><block type="sensor_mixgo_button_is_pressed" id="5Js_P62uf;A{giU0$(J^"><value name="btn"><shadow type="pins_button" id="/2`x~aR9e@V9C0ORivc@"><field name="PIN">A3key</field></shadow></value></block></value><value name="B"><block type="sensor_mixgo_button_is_pressed" id="(nDNklT=#wx3UJ!d:qLI"><value name="btn"><shadow type="pins_button" id="Jq[ZT/IEQ|s,40Y$Q]q{"><field name="PIN">A4key</field></shadow></value></block></value></block></value></block></value><next><block type="variables_set" id="-d]G7YVG.*]rqa{ERfKr"><field name="VAR">按下时刻</field><value name="VALUE"><block type="controls_millis" id="]]d96QNo`lC3A[vKX5I{"><field name="Time">ms</field></block></value><next><block type="controls_if" id="`PEZq1L?anG$*o8^HzCq"><mutation else="1"></mutation><value name="IF0"><block type="logic_operation" id="g,2vwo@^(CozkW[7M}9V" inline="false"><field name="OP">AND</field><value name="A"><block type="logic_operation" id="H_7~|rTwa[hW;nAZgr6N" inline="false"><field name="OP">OR</field><value name="A"><block type="logic_operation" id="brWyZHCQs41*i|Cs~.-Z" inline="false"><field name="OP">OR</field><value name="A"><block type="logic_operation" id="_r8(0P1t;hUe]WFpycym"><field name="OP">AND</field><value name="A"><block type="sensor_mixgo_button_is_pressed" id="1Hi3UzA@`!eh{yG}|yZC"><value name="btn"><shadow type="pins_button" id="~Ki:Hs7:g5M~CJ7t-AG."><field name="PIN">A1key</field></shadow></value></block></value><value name="B"><block type="logic_compare" id="jRS]tl+gccJqCJuIv~.b"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="K?,ADIcd^@:]jYGYI1!j"><field name="VAR">图像编号</field></block></value><value name="B"><block type="math_number" id="-6/H2T8m+@!A{}!Vpv-w"><field name="NUM">0</field></block></value></block></value></block></value><value name="B"><block type="logic_operation" id="L07G#,Kd3y(7Vi?}~c[n"><field name="OP">AND</field><value name="A"><block type="sensor_mixgo_button_is_pressed" id="L-cS(/wAHVmfJep{rjpp"><value name="btn"><shadow type="pins_button" id="Rd=`qP@#{S)W?N,g,M+z"><field name="PIN">A2key</field></shadow></value></block></value><value name="B"><block type="logic_compare" id="+gv.zGGOA9e(TeK13]o]"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="][rAO*QO:]kx:adi*tWB"><field name="VAR">图像编号</field></block></value><value name="B"><block type="math_number" id=".6(eFeS4ZpNj$kRb5SKn"><field name="NUM">1</field></block></value></block></value></block></value></block></value><value name="B"><block type="logic_operation" id="rw/V?^_^5XOi#EA7S-Zw" inline="false"><field name="OP">OR</field><value name="A"><block type="logic_operation" id="p|U?!n1F$1T}!#?U:0$i"><field name="OP">AND</field><value name="A"><block type="sensor_mixgo_button_is_pressed" id="upF-n8n=q_/{q`!WqnbM"><value name="btn"><shadow type="pins_button" id="R}!n,FaSHmRlq|E7cPt$"><field name="PIN">A3key</field></shadow></value></block></value><value name="B"><block type="logic_compare" id="hRP)WS2a8khv0-X#Nh#="><field name="OP">EQ</field><value name="A"><block type="variables_get" id="o.Sj2G9oItNK:VXL*VPn"><field name="VAR">图像编号</field></block></value><value name="B"><block type="math_number" id="p}b-ct/8y6loiVtJN^rE"><field name="NUM">2</field></block></value></block></value></block></value><value name="B"><block type="logic_operation" id="8U~,i)46e[?3l3OsTu;b"><field name="OP">AND</field><value name="A"><block type="sensor_mixgo_button_is_pressed" id="a_/ZChFb6eJropwTjKB,"><value name="btn"><shadow type="pins_button" id="Al3yZm@0-_OD{!xFoSXO"><field name="PIN">A4key</field></shadow></value></block></value><value name="B"><block type="logic_compare" id="a!S-:b^F_WR+:)X-M!J("><field name="OP">EQ</field><value name="A"><block type="variables_get" id="e}H2I_t3}*FYELNaFRd1"><field name="VAR">图像编号</field></block></value><value name="B"><block type="math_number" id="R**0=2[iqC=hx9NAQ+6U"><field name="NUM">3</field></block></value></block></value></block></value></block></value></block></value><value name="B"><block type="logic_compare" id="YfKRrc1^i77tmuU3CdS]"><field name="OP">LT</field><value name="A"><block type="math_arithmetic" id="H;w0($zyi?{`:=K5[V{S"><field name="OP">MINUS</field><value name="A"><shadow type="math_number" id="Y`tEv~+5f7V`;A;|j-d^"><field name="NUM">1</field></shadow><block type="variables_get" id="=F07qi)5[ea#y(qN[Mu."><field name="VAR">按下时刻</field></block></value><value name="B"><shadow type="math_number" id=";|$kv#qm5o4z5:yXkE6~"><field name="NUM">1</field></shadow><block type="variables_get" id="QmW_RG?tH(5^=10wb~du"><field name="VAR">亮屏时刻</field></block></value></block></value><value name="B"><block type="math_number" id=".DW0`a#fol.~5/eKj2;#"><field name="NUM">1000</field></block></value></block></value></block></value><statement name="DO0"><block type="math_selfcalcu" id="8Ny~)bEA^47EQ$]SQKpt"><field name="OP">ADD</field><value name="A"><shadow type="variables_get" id="HdE81M@[MOExdDj/)JJv"><field name="VAR">游戏得分</field></shadow></value><value name="B"><shadow type="math_number" id="n+|2NUK/O+6U(^pcbaBs"><field name="NUM">1</field></shadow></value><next><block type="esp32_onboard_music_pitch_with_time" id="RRmsh`{NOnmT(:)i*A/U"><value name="pitch"><shadow type="pins_tone_notes" id="KSKP[jgiEO]~G*;jQ*gF"><field name="PIN">988</field></shadow></value><value name="time"><shadow type="math_number" id=":th1wVLy6gkk/lp5Z~}:"><field name="NUM">100</field></shadow></value></block></next></block></statement><statement name="ELSE"><block type="math_selfcalcu" id="/GCWmvbB3-R$l,*on;4x"><field name="OP">MINUS</field><value name="A"><shadow type="variables_get" id="@UT`xR[3Z6XJfql@o6k}"><field name="VAR">游戏得分</field></shadow></value><value name="B"><shadow type="math_number" id="jrJJ/:Bp2zEpM?kFZ^5I"><field name="NUM">1</field></shadow></value><next><block type="esp32_onboard_music_pitch_with_time" id=")Nv#YQ}T)/9-$jUuBD^?"><value name="pitch"><shadow type="pins_tone_notes" id="k9I7,+1;!qs?eZvI;pxU"><field name="PIN">131</field></shadow></value><value name="time"><shadow type="math_number" id="`e~O9T6?:r/,k8.m}rI."><field name="NUM">100</field></shadow></value></block></next></block></statement><next><block type="display_show_image_or_string_delay" id="]Fvn@$(,+I*C!{3^wUvh"><field name="center">True</field><value name="data"><shadow type="text" id="!}DNH2e;hT{epFK-o=#0"><field name="TEXT">Mixly</field></shadow><block type="number_to_text" id="p_GtoU!@OJqug1x30xy("><value name="VAR"><shadow type="variables_get" id="vYKhF}1C)dlDfBlSkzjx"><field name="VAR">x</field></shadow><block type="variables_get" id="f$-ju^UiWguG8e9uo#aL"><field name="VAR">游戏得分</field></block></value></block></value><value name="space"><shadow type="math_number" id="iBX)L*.90Zl?xpG}O:FQ"><field name="NUM">0</field></shadow></value><value name="boolean"><shadow type="logic_boolean" id="w7ZT=f-];cH,eSAU.,-d"><field name="BOOL">TRUE</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></xml><config>{}</config><code>aW1wb3J0IHRpbWUKaW1wb3J0IHJhbmRvbQpmcm9tIG1peGdvX25vdmEgaW1wb3J0IG9uYm9hcmRfdGZ0CmltcG9ydCBtaXhnb19ub3ZhCmZyb20gbWl4Z29fbm92YV92b2ljZSBpbXBvcnQgc3BrX21pZGkKCuWbvuWDj+e8luWPtyA9IDAK5ri45oiP5b6X5YiGID0gMArkuq7lsY/ml7bliLsgPSAwCuaMieS4i+aXtuWIuyA9IDAK5Zu+5YOP6ZuG5ZCIPSAoJ+KGkycsICfihpAnLCAn4oaRJywgJ+KGkicpCndoaWxlIFRydWU6CiAgICB0aW1lLnNsZWVwKChyYW5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