1 line
11 KiB
XML
1 line
11 KiB
XML
<xml version="Mixly 3.0 rc0" board="Python ESP32-S3@元控青春" shown="block"><block type="variables_set" id="B7Tr;hT]#(z7Hy.j`JP0" x="-3510" y="-874"><field name="VAR">图像编号</field><value name="VALUE"><block type="math_number" id="|q#rObo(a$?Yp9L{I)|6"><field name="NUM">0</field></block></value><next><block type="variables_set" id="h]h;dmLrsuxOPp6NX_~("><field name="VAR">游戏得分</field><value name="VALUE"><block type="math_number" id="@2-1*JVPzx4pgW9#i(U0"><field name="NUM">0</field></block></value><next><block type="tuple_create_with" id="0s~gR[:gB]`wV;jz8f|a" inline="true"><mutation items="4"></mutation><field name="VAR">图像集合</field><value name="ADD0"><block type="text" id="(c{oOADld)SXVC;/1O!Q"><field name="TEXT">↓</field></block></value><value name="ADD1"><block type="text" id="g~/w.oBD(T|:P1E9t;R}"><field name="TEXT">←</field></block></value><value name="ADD2"><block type="text" id="1v_AM2B)y)~4o1=aT?76"><field name="TEXT">↑</field></block></value><value name="ADD3"><block type="text" id="fKE2~jH1g1B+SG|Vnes8"><field name="TEXT">→</field></block></value><next><block type="controls_whileUntil" id="au|^fEK^33zR#vLEBFcX"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="[uTre(,_J)#J?#?.UFzZ"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="controls_delay_new" id="L(#`#Ck/_xB9mrMK?z_b"><field name="Time">s</field><value name="DELAY_TIME"><shadow type="math_number" id="i9nVi0QkQKT1S+vUCl6T"><field name="NUM">1</field></shadow><block type="math_random" id="*g+e?[n[kH(~_1118V~|"><field name="TYPE">float</field><value name="FROM"><shadow type="math_number" id="HToIXayfpmZ0Lch#:rW;"><field name="NUM">0</field></shadow></value><value name="TO"><shadow type="math_number" id="IpeCmG`D:Sxmcc)j$m_Q"><field name="NUM">1</field></shadow></value></block></value><next><block type="variables_set" id="d|fcg8P=2R3+LMatl4)|"><field name="VAR">图像编号</field><value name="VALUE"><block type="math_random" id="]airN5Wbhh,MGZ@P]7,/"><field name="TYPE">int</field><value name="FROM"><shadow type="math_number" id="eS3UBe#;8mY+rK24KZq~"><field name="NUM">0</field></shadow></value><value name="TO"><shadow type="math_number" id="_XPL4zWL,Z_;6p3_X:U|"><field name="NUM">3</field></shadow></value></block></value><next><block type="display_show_image_or_string_delay" id=".}7Ta9[Uyc5sL~liUTV!"><field name="center">True</field><value name="data"><shadow type="text" id="AwsCya@Eo#Kwnv8v#x(["><field name="TEXT">Mixly</field></shadow><block type="tuple_getIndex" id=":LX8-jk0Up@=+F/Zg-qv"><value name="TUP"><shadow type="variables_get" id="iM.T=u+W^w_zITSiB5W8"><field name="VAR">图像集合</field></shadow></value><value name="AT"><shadow type="math_number" id="`sOc`Mc|@hw$6s:kAc/*"><field name="NUM">0</field></shadow><block type="variables_get" id="nP,Lz?fp~l1Q9s?yu-mn"><field name="VAR">图像编号</field></block></value></block></value><value name="space"><shadow type="math_number" id="Jt^gTa.sO-y7*|o_.^bl"><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="do_while" id="iKR!lQ@J*/JEQoLTCmnQ"><field name="type">true</field><value name="select_data"><block type="logic_operation" id="pl55jz;#nG+P1SDZ1i$5"><field name="OP">OR</field><value name="A"><block type="logic_operation" id="Z{oA,NtMcn-Vu$/uj^_K"><field name="OP">OR</field><value name="A"><block type="sensor_mixgo_button_is_pressed" id="o..@.J}:ncjt|~RHQq),"><value name="btn"><shadow type="pins_button" id="jt9b^xXKj=HZY@$V]Jzp"><field name="PIN">A1key</field></shadow></value></block></value><value name="B"><block type="sensor_mixgo_button_is_pressed" id="{]GqaXA|uWKtwQwN;)[4"><value name="btn"><shadow type="pins_button" id="4tJ|:AyAH4dwZ7?T3+}f"><field name="PIN">A2key</field></shadow></value></block></value></block></value><value name="B"><block type="logic_operation" id="A+KqRYY_nL_Zt_+P:!Z8"><field name="OP">OR</field><value name="A"><block type="sensor_mixgo_button_is_pressed" id="L|kFt##!k?9Aa}fT0PJo"><value name="btn"><shadow type="pins_button" id="::C|Zf6U6?/lpde4=,-l"><field name="PIN">A3key</field></shadow></value></block></value><value name="B"><block type="sensor_mixgo_button_is_pressed" id="aOMKrA~1M!L7=6+~6Z.s"><value name="btn"><shadow type="pins_button" id="NzS4[x^2`AA.!2.]n|c-"><field name="PIN">A4key</field></shadow></value></block></value></block></value></block></value><next><block type="controls_if" id="[jaJp`RJ,n}g9DdT?ATU"><mutation else="1"></mutation><value name="IF0"><block type="logic_operation" id="B]IKNj{X6]anm1^oGweh" inline="false"><field name="OP">OR</field><value name="A"><block type="logic_operation" id="ek8.P.$;B*XpW$YQbhi0" inline="false"><field name="OP">OR</field><value name="A"><block type="logic_operation" id="+vixE-mY8{[+v|![DBLo"><field name="OP">AND</field><value name="A"><block type="sensor_mixgo_button_is_pressed" id="Sjz{34cc7Q}7!w|#l_1A"><value name="btn"><shadow type="pins_button" id="c6fRx4/Ue-]P*neL{znn"><field name="PIN">A1key</field></shadow></value></block></value><value name="B"><block type="logic_compare" id="b#xoc;uaetkr+dw0,l@O"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="m|#2)ZH7?Knb{R[c6/I1"><field name="VAR">图像编号</field></block></value><value name="B"><block type="math_number" id="uajb0OLRw;mbE::TpKpo"><field name="NUM">0</field></block></value></block></value></block></value><value name="B"><block type="logic_operation" id="i.9)iWZzke|RIrY5U2+U"><field name="OP">AND</field><value name="A"><block type="sensor_mixgo_button_is_pressed" id="n.:X(RmiyZ9mi3gr]I!H"><value name="btn"><shadow type="pins_button" id="}I4~fhVB^}d,1Hnlyz$b"><field name="PIN">A2key</field></shadow></value></block></value><value name="B"><block type="logic_compare" id="~ppSC*bc3urdcE;1{gs#"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="WjWf~/^Q)vj`7J3NkIC_"><field name="VAR">图像编号</field></block></value><value name="B"><block type="math_number" id=",ALZmkn31d)U*n*I~hQ$"><field name="NUM">1</field></block></value></block></value></block></value></block></value><value name="B"><block type="logic_operation" id="[PLNCmQw5;!QTlwtWeH#" inline="false"><field name="OP">OR</field><value name="A"><block type="logic_operation" id="-z6y[~67f|Cqm|kz,i,("><field name="OP">AND</field><value name="A"><block type="sensor_mixgo_button_is_pressed" id=":79qs?bAL~~wQ4KcIKpa"><value name="btn"><shadow type="pins_button" id="Y:_.Hp$F^p9!}9}|UPiy"><field name="PIN">A3key</field></shadow></value></block></value><value name="B"><block type="logic_compare" id="aujw`4q{(V+,vvg+I6_F"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="|fh)@TTFk1NOXb,7;tgI"><field name="VAR">图像编号</field></block></value><value name="B"><block type="math_number" id="QGi`iK5ihFK{y;(?SkUS"><field name="NUM">2</field></block></value></block></value></block></value><value name="B"><block type="logic_operation" id="kbmBVdSLWQrX+C=eOeNB"><field name="OP">AND</field><value name="A"><block type="sensor_mixgo_button_is_pressed" id="eGGS(q2{xXktGMX~7!rx"><value name="btn"><shadow type="pins_button" id="^O,gm74w:Z/Kbhg:bp:T"><field name="PIN">A4key</field></shadow></value></block></value><value name="B"><block type="logic_compare" id="LZeuAX-2zWuJ2V]]S{.S"><field name="OP">EQ</field><value name="A"><block type="variables_get" id=",}md2=f2srFVG0`9Y4eK"><field name="VAR">图像编号</field></block></value><value name="B"><block type="math_number" id="e0FdYCK,AaLRETiij2jM"><field name="NUM">3</field></block></value></block></value></block></value></block></value></block></value><statement name="DO0"><block type="math_selfcalcu" id="Z#u-e5bC]/Z`Rm1+pNum"><field name="OP">ADD</field><value name="A"><shadow type="variables_get" id="-jv.$PxA*8ATF(3v}fw{"><field name="VAR">游戏得分</field></shadow></value><value name="B"><shadow type="math_number" id="A.,!;Q[sfK{Lo]Lu_tWw"><field name="NUM">1</field></shadow></value><next><block type="esp32_onboard_music_pitch_with_time" id="dCqTl7QUonn95KtS_I)d"><value name="pitch"><shadow type="pins_tone_notes" id="Ez9:qhdC|.cN;OnmrwlV"><field name="PIN">988</field></shadow></value><value name="time"><shadow type="math_number" id="3a-L!b!nbZ0.F10Yl[M*"><field name="NUM">100</field></shadow></value></block></next></block></statement><statement name="ELSE"><block type="math_selfcalcu" id="JY-}w(-9=ogK:sbsOU74"><field name="OP">MINUS</field><value name="A"><shadow type="variables_get" id="9!CAt:NpJX8RnZ54kw2-"><field name="VAR">游戏得分</field></shadow></value><value name="B"><shadow type="math_number" id="yMu7iKyKgP;![A1o4Fu:"><field name="NUM">1</field></shadow></value><next><block type="esp32_onboard_music_pitch_with_time" id="6u~*]x5/,(rAcRSyc1)c"><value name="pitch"><shadow type="pins_tone_notes" id="w#xtc`90J+;)/3^KJy8."><field name="PIN">131</field></shadow></value><value name="time"><shadow type="math_number" id=":_b!2gZ^MRBw)xcr8;vb"><field name="NUM">100</field></shadow></value></block></next></block></statement><next><block type="display_show_image_or_string_delay" id="bv`-PQp5P*$UIrlzaEa~"><field name="center">True</field><value name="data"><shadow type="text" id="8QKgK=Kr8p)A:l9c=#IA"><field name="TEXT">Mixly</field></shadow><block type="number_to_text" id="lu(u7UsryYS=5v-aLG0^"><value name="VAR"><shadow type="variables_get" id="`5f/_w|#N#WDsS@C^TJj"><field name="VAR">x</field></shadow><block type="variables_get" id="!glDv]!w{H{x$2D^2]9^"><field name="VAR">游戏得分</field></block></value></block></value><value name="space"><shadow type="math_number" id="D@=Xr:=z]H[w3RYaD+WS"><field name="NUM">0</field></shadow></value><value name="boolean"><shadow type="logic_boolean" id="R`W!Pzy]muDy_js;)oGo"><field name="BOOL">TRUE</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></xml><config>{}</config><code>aW1wb3J0IHRpbWUKaW1wb3J0IHJhbmRvbQpmcm9tIG1peGdvX25vdmEgaW1wb3J0IG9uYm9hcmRfdGZ0CmltcG9ydCBtaXhnb19ub3ZhCmZyb20gbWl4Z29fbm92YV92b2ljZSBpbXBvcnQgc3BrX21pZGkKCuWbvuWDj+e8lu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