Files
mixly3/boards/default/micropython_esp32c5/examples/MixGo Sowl/学期2/4-2-1 巧接金雨-显示金豆下落.mix

1 line
10 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<xml version="Mixly 3.0 rc0" board="Python ESP32-C5@元控自立SOWL" shown="block"><block type="variables_set" id="L~!}iew@b7_b$INI`U3b" x="-592" y="-220"><field name="VAR">篮子位置</field><value name="VALUE"><block type="math_number" id="$mZ,MuaZ97v4;Qiarv*v"><field name="NUM">0</field></block></value><next><block type="variables_set" id="NMI,-*XHVMMr+-:Gp9?."><field name="VAR">金币位置x</field><value name="VALUE"><block type="math_random" id="Gdx^[DFTfKuxMPj^G+;F"><field name="TYPE">int</field><value name="FROM"><shadow type="math_number" id="_.A7+Z_qWuCje=all512"><field name="NUM">0</field></shadow></value><value name="TO"><shadow type="math_number" id="#$Xh9~P(c0E4~jS.U@DO"><field name="NUM">15</field></shadow></value></block></value><next><block type="variables_set" id="[J)CNoQxDc^s4.Mv/p]i"><field name="VAR">金币位置y</field><value name="VALUE"><block type="math_number" id="ylAx,(m~C/TgYTtr(;Ti"><field name="NUM">0</field></block></value><next><block type="controls_whileUntil" id="C$tn;8gvBOtp+p{p*Uxc"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="iy8ze2Vkq_v(k|DG(3VD"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="controls_if" id="vk.TR-d[KxkOJ{D!Y^kz"><value name="IF0"><block type="sensor_mixgo_button_was_pressed" id="Cha1CU6$ge8$XL}!!snh"><value name="btn"><shadow type="pins_button" id="?~6t$7w+(S^eJ)1o*?W("><field name="PIN">B1key</field></shadow></value></block></value><statement name="DO0"><block type="math_selfcalcu" id="C3SKzoPCD4;FsOot*,|O"><field name="OP">ADD</field><value name="A"><shadow type="variables_get" id="P!+3N/0T69ZgdHXS:i2I"><field name="VAR">a</field></shadow><block type="variables_get" id="|9n~Aw$@cSROtIrT5F,Z"><field name="VAR">篮子位置</field></block></value><value name="B"><shadow type="math_number" id="F}czrY?,2`2$[w_[nU{#"><field name="NUM">1</field></shadow></value><next><block type="variables_set" id="Aw33#_U!OQwIfF75r=zc"><field name="VAR">篮子位置</field><value name="VALUE"><block type="math_max_min" id="@X`7]Z0sj2bPAQUDQeU:"><field name="OP">min</field><value name="A"><shadow type="math_number" id="FB}L`sNM5/u4()OMyW*5"><field name="NUM">1</field></shadow><block type="variables_get" id="x7eA`+/wwkR4Y@:I0t70"><field name="VAR">篮子位置</field></block></value><value name="B"><shadow type="math_number" id=",`7;p/4ZgSo,M-@B*v=i"><field name="NUM">13</field></shadow></value></block></value></block></next></block></statement><next><block type="controls_if" id="hT!d?-0N]A{HrHoEzu/#"><value name="IF0"><block type="sensor_mixgo_button_was_pressed" id="iB!V[}W=Py)U_E)(E{vV"><value name="btn"><shadow type="pins_button" id="-Vl0{9=fv`yjf|?eg~f`"><field name="PIN">A1key</field></shadow></value></block></value><statement name="DO0"><block type="math_selfcalcu" id="]XgY[cCr^SwF!es;$30."><field name="OP">MINUS</field><value name="A"><shadow type="variables_get" id="C)h6fl9vT#{XB,5NWS6`"><field name="VAR">a</field></shadow><block type="variables_get" id="Di=9|KLp#!{0FV$C~,=^"><field name="VAR">篮子位置</field></block></value><value name="B"><shadow type="math_number" id="*?IFoJb0+wnhOHMap06N"><field name="NUM">1</field></shadow></value><next><block type="variables_set" id="!v6uaI[drR4N9=VB=W3D"><field name="VAR">篮子位置</field><value name="VALUE"><block type="math_max_min" id="-Qyu~{js=On47,M/MK=C"><field name="OP">max</field><value name="A"><shadow type="math_number" id="}{`xZbRjt)dq*nakf5Ic"><field name="NUM">1</field></shadow><block type="variables_get" id="|LOQBV=mDoxR:EC=v(~E"><field name="VAR">篮子位置</field></block></value><value name="B"><shadow type="math_number" id="4bTaO`$t}zZAFuG]n;!V"><field name="NUM">0</field></shadow></value></block></value></block></next></block></statement><next><block type="controls_if" id="5)Mc0?*syR9d.:co+eQ@"><mutation else="1"></mutation><value name="IF0"><block type="logic_compare" id=";UNC1y|RdC#/;ETfx]LF"><field name="OP">LT</field><value name="A"><block type="variables_get" id="m]R(urq5fRg^?AXy5VZ}"><field name="VAR">金币位置y</field></block></value><value name="B"><block type="math_number" id="V1H8#dPe-=JthOL])PG1"><field name="NUM">15</field></block></value></block></value><statement name="DO0"><block type="math_selfcalcu" id="Hka6te$;:Ne9kQk,QQr9"><field name="OP">ADD</field><value name="A"><shadow type="variables_get" id="_}I`##1M_6?TOEkMhQf~"><field name="VAR">a</field></shadow><block type="variables_get" id="!JrC4Cr5}M8;LuUBu+|H"><field name="VAR">金币位置y</field></block></value><value name="B"><shadow type="math_number" id="(xA}LI88/Bk;M-bK}De}"><field name="NUM">1</field></shadow></value><next><block type="procedures_callnoreturn" id="#:`qP0Br$8v(WWiI+O=^" inline="true"><mutation name="更新显示"></mutation></block></next></block></statement><statement name="ELSE"><block type="variables_set" id="NL_5G7+xGqsp;0]C.AZI"><field name="VAR">金币位置x</field><value name="VALUE"><block type="math_random" id="VMNf9Q:ApGumER:}j;Sx"><field name="TYPE">int</field><value name="FROM"><shadow type="math_number" id="k|M6PQZ~MS6w1Q.^wT}s"><field name="NUM">0</field></shadow></value><value name="TO"><shadow type="math_number" id="=NR:_dG3E=fb4JT{L6HG"><field name="NUM">15</field></shadow></value></block></value><next><block type="variables_set" id="KS6cB$qH2u5d{Pq05a{U"><field name="VAR">金币位置y</field><value name="VALUE"><block type="math_number" id="k88Ho;-D7[BT/qzN!7i`"><field name="NUM">0</field></block></value></block></next></block></statement><next><block type="controls_delay_new" id="AK/YEfMTV@q]4l_cMFN4"><field name="Time">s</field><value name="DELAY_TIME"><shadow type="math_number" id="mX~{/lv6r[Nu34uTqs|g"><field name="NUM">0.1</field></shadow></value></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block><block type="procedures_defnoreturn" id="e@I8l~SdYC3qdf~SW.C;" x="4" y="-139"><field name="NAME">更新显示</field><statement name="STACK"><block type="display_clear" id="k|21k-(?OFQLRGlGA;9K"><value name="boolean"><shadow type="logic_boolean" id="f.PV4xY?IZ8`h*47FrD^"><field name="BOOL">FALSE</field></shadow></value><next><block type="onboard_tft_display_shape_rect" id="VVsY8NFS+;j7rpcPGl@X"><field name="shape">fill_rect</field><value name="x"><shadow type="math_number" id="c*LuN^uoUQ$|^Gp@uLwv"><field name="NUM">20</field></shadow><block type="math_arithmetic" id="hHOt;B(inig;B;#56R74"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number" id="dRrXi9*{i_C+;XWhZ~|l"><field name="NUM">1</field></shadow><block type="variables_get" id="$qL_Ihha6mL$Fv.U{k):"><field name="VAR">金币位置x</field></block></value><value name="B"><shadow type="math_number" id="g8bn@$FnW:+*)#Sl2:^6"><field name="NUM">8</field></shadow></value></block></value><value name="y"><shadow type="math_number" id="EiEs?TZtt/XjektKd7rv"><field name="NUM">220</field></shadow><block type="math_arithmetic" id=";qpNFz+,aFJe,]~.U1D_"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number" id="LzxO5}NeT)x+66mX`__)"><field name="NUM">1</field></shadow><block type="variables_get" id=",)}$lafWPAyVc5o#HDES"><field name="VAR">金币位置y</field></block></value><value name="B"><shadow type="math_number" id="K)O*Ss)QS3x?jNYstWI$"><field name="NUM">8</field></shadow></value></block></value><value name="w"><shadow type="math_number" id="H+wber~UPqY1#^2ft#MW"><field name="NUM">8</field></shadow></value><value name="h"><shadow type="math_number" id="35WQv3/SX=.RI,C-Op/L"><field name="NUM">8</field></shadow></value><value name="VAR"><shadow type="tuple_create_with_text_return" id="T]lsy95qE}]4zA*U!ype"><field name="TEXT">255,255,0</field></shadow><block type="display_color_seclet" id="`T1/Gh+=ZZZ+AfK`3DQJ"><field name="COLOR">#ffffff</field></block></value><value name="boolean"><shadow type="logic_boolean" id="dl#k`mhaIK]`0u3Gx0Xt"><field name="BOOL">FALSE</field></shadow></value><next><block type="onboard_tft_display_shape_rect" id="T7ICi_8Jw^UqqbR~my.["><field name="shape">fill_rect</field><value name="x"><shadow type="math_number" id="4JKFqvMudSyLU|g_67N+"><field name="NUM">20</field></shadow><block type="math_arithmetic" id="1Aq,d=z[*u`/.5R[xlW?"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number" id="rPe8hFe{DN(hh2{NkBBe"><field name="NUM">1</field></shadow><block type="variables_get" id="y2SnHU6(zaHc+YfIX~R6"><field name="VAR">篮子位置</field></block></value><value name="B"><shadow type="math_number" id="dPbq6B?6W#YH;)#L;I`t"><field name="NUM">8</field></shadow></value></block></value><value name="y"><shadow type="math_number" id="~~:Q*|v}(7?E5LFt]E[U"><field name="NUM">120</field></shadow></value><value name="w"><shadow type="math_number" id="*2=~V1rqo3V+]Mi5q_m)"><field name="NUM">24</field></shadow></value><value name="h"><shadow type="math_number" id="}HAr0?EZ@eo:.$Q_eIUW"><field name="NUM">8</field></shadow></value><value name="VAR"><shadow type="tuple_create_with_text_return" id="R4:N!1?Osn0vmQ~@Qk7e"><field name="TEXT">255,255,0</field></shadow><block type="display_color_seclet" id="QSi?2SL@kiVtyo?IelZN"><field name="COLOR">#ffffff</field></block></value><value name="boolean"><shadow type="logic_boolean" id="~BX.2rp0t(9BEfW`2T_["><field name="BOOL">TRUE</field></shadow></value></block></next></block></next></block></statement></block></xml><config>{"BurnSpeed":{"key":"921600","label":"921600"}}</config><code>aW1wb3J0IHJhbmRvbQppbXBvcnQgbWl4Z29fc293bAppbXBvcnQgdGltZQpmcm9tIG1peGdvX3Nvd2wgaW1wb3J0IG9uYm9hcmRfdGZ0CgoKZGVmIOabtOaWsOaYvuekuigpOgogICAgb25ib2FyZF90ZnQuZmlsbCgwLHN5bmM9RmFsc2UpCiAgICBvbmJvYXJkX3RmdC5maWxsX3JlY3QoKOmHkeW4geS9jee9rnggKiA4KSwgKOmHkeW4geS9jee9rnkgKiA4KSwgOCwgOCwgMHhmZmZmLHN5bmM9RmFsc2UpCiAgICBvbmJvYXJkX3RmdC5maWxsX3JlY3QoKOevruWtkOS9jee9riAqIDgpLCAxMjAsIDI0LCA4LCAweGZmZmYsc3luYz1UcnVlKQoKCgrnr67lrZDkvY3nva4gPSAwCumHkeW4geS9jee9rnggPSByYW5kb20ucmFuZGludCgwLCAxNSkK6YeR5biB5L2N572ueSA9IDAKd2hpbGUgVHJ1ZToKICAgIGlmIG1peGdvX3Nvd2wuQjFrZXkud2FzX3ByZXNzZWQoKToKICAgICAgICDnr67lrZDkvY3nva4gKz0gMQogICAgICAgIOevruWtkOS9jee9riA9IG1pbijnr67lrZDkvY3nva4sIDEzKQogICAgaWYgbWl4Z29fc293bC5BMWtleS53YXNfcHJlc3NlZCgpOgogICAgICAgIOevruWtkOS9jee9riAtPSAxCiAgICAgICAg56+u5a2Q5L2N572uID0gbWF4KOevruWtkOS9jee9riwgMCkKICAgIGlmIOmHkeW4geS9jee9rnkgPCAxNToKICAgICAgICDph5HluIHkvY3nva55ICs9IDEKICAgICAgICDmm7TmlrDmmL7npLooKQogICAgZWxzZToKICAgICAgICDph5HluIHkvY3nva54ID0gcmFuZG9tLnJhbmRpbnQoMCwgMTUpCiAgICAgICAg6YeR5biB5L2N572ueSA9IDAKICAgIHRpbWUuc2xlZXAoMC4xKQo=</code>