Files
mixly3/boards/default/micropython_esp32c2/examples/MixGo MINI/经典游戏复刻/G1-3 接金币游戏-模块化手动移动篮子.mix

1 line
6.0 KiB
XML

<xml version="Mixly 3.0 rc0" board="Python ESP32-C2@MixGo MINI" shown="block"><variables><variable id="dI-?|^U3!y^0*wGzk5/b">x</variable></variables><block type="variables_set" id="C@ci!Vy25gC|9$lHB0J}" x="-522" y="-214"><field name="VAR">篮子位置</field><value name="VALUE"><block type="math_number" id="mz{g18c?Bm|BRi/C$qoh"><field name="NUM">0</field></block></value><next><block type="controls_whileUntil" id="xN$vcRWnt{LZIjR2$AHs"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="VQpvt_#(kW[v_tsJ+T#n"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="controls_if" id="1-fsg7qjhiN`Fj1=n+oj"><value name="IF0"><block type="sensor_mixgo_button_was_pressed" id="CM.2--{uc@:Nf,u{M|nj"><value name="btn"><shadow type="pins_button" id="4D?vY.H)TpgrImVBTDs0"><field name="PIN">B1key</field></shadow></value></block></value><statement name="DO0"><block type="math_selfcalcu" id="pi.{wujuW?J.2-=2-fno"><field name="OP">ADD</field><value name="A"><shadow type="variables_get" id="Da!.Cf]k@Q_qS=Rh,Y`k"><field name="VAR">a</field></shadow><block type="variables_get" id=":uQ96FfXPo3?Y3);hrF{"><field name="VAR">篮子位置</field></block></value><value name="B"><shadow type="math_number" id="w^Jv6aJzH_HX$(bz!H`2"><field name="NUM">1</field></shadow></value><next><block type="display_clear" id="cHB.L3gKq{r7hgm9H{PC"></block></next></block></statement><next><block type="controls_if" id="Z~A79za)wyI~HeDP32nm"><value name="IF0"><block type="sensor_mixgo_button_was_pressed" id="f`-X.C.lxcs-IRtC+:lw"><value name="btn"><shadow type="pins_button" id="eC~HO*qV4m,ofR!b`N;9"><field name="PIN">A1key</field></shadow></value></block></value><statement name="DO0"><block type="math_selfcalcu" id="dapkXeVEN#a2]?t[opYh"><field name="OP">MINUS</field><value name="A"><shadow type="variables_get" id="!:1K`YyFj=HY$r.Q8Mp{"><field name="VAR">a</field></shadow><block type="variables_get" id="$,H8JWw~(DQ8p-^8JAuY"><field name="VAR">篮子位置</field></block></value><value name="B"><shadow type="math_number" id="p$G}ai(u7#E``EVS6DrB"><field name="NUM">1</field></shadow></value><next><block type="display_clear" id="g{3T*=N~8[*kcc3i=WZ-"></block></next></block></statement><next><block type="procedures_callnoreturn" id="`(7}9C]ZB?o):ek~/bta" inline="true"><mutation name="显示篮子"><arg name="x"></arg></mutation><value name="ARG0"><block type="variables_get" id="{YxvuI2:t_8eiVxuaT$/"><field name="VAR">篮子位置</field></block></value></block></next></block></next></block></statement></block></next></block><block type="procedures_defnoreturn" id="@f$f+Y@0;/t-FlkuKn2A" x="262" y="-211"><mutation><arg name="x" varid="dI-?|^U3!y^0*wGzk5/b"></arg></mutation><field name="NAME">显示篮子</field><statement name="STACK"><block type="display_bright_point" id=")2zW;KB-Oy2*#64SwfrL"><value name="x"><shadow type="pins_exlcdh" id="6BwWZvc/qHocG/J,/T-6"><field name="PIN">0</field></shadow><block type="math_arithmetic" id="|G9vtX_tzdjie5tOed@,"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="v+r0gf*UD?S2M|On]u|9"><field name="NUM">1</field></shadow><block type="variables_get" id="4Es5fy=HNTmb0T-xRuw("><field name="VAR">x</field></block></value><value name="B"><shadow type="math_number" id="l,Z{?8=XTyOR)5#p)ZiM"><field name="NUM">0</field></shadow></value></block></value><value name="y"><shadow type="pins_exlcdv" id="RO1[c/a[|w=:;y/]p7/0"><field name="PIN">7</field></shadow></value><value name="STAT"><shadow type="display_onoff" id="}dq0oZXX8.K)2f.@J3XT"><field name="ONOFF">ON</field></shadow></value><next><block type="display_bright_point" id="fUHQaRfgTPg@XKAArDpL"><value name="x"><shadow type="pins_exlcdh" id="8Bg_,B`H~88r##$?!U$0"><field name="PIN">1</field></shadow><block type="math_arithmetic" id="6VqGqFb;b(h^NABkj3:M"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="-1*bom5Ent:s;~Z*E|_2"><field name="NUM">1</field></shadow><block type="variables_get" id="ZUvfm,[g;l}@p^sgm6w="><field name="VAR">x</field></block></value><value name="B"><shadow type="math_number" id=";Xu`70PF:cX2WkmLz+l,"><field name="NUM">1</field></shadow></value></block></value><value name="y"><shadow type="pins_exlcdv" id="r;JBc39nza23iiO.@u.9"><field name="PIN">7</field></shadow></value><value name="STAT"><shadow type="display_onoff" id="b3WmNHTVRUe9X~H-qZ(O"><field name="ONOFF">ON</field></shadow></value><next><block type="display_bright_point" id="(+7oWEOHu_Gdj]6BuZ3="><value name="x"><shadow type="pins_exlcdh" id="Em?eapmZ7SKH9|U,L4US"><field name="PIN">2</field></shadow><block type="math_arithmetic" id="=h.1S7cP[X3dY1PQYPs,"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="t4h=k3bPby+.!Ob}a|-+"><field name="NUM">1</field></shadow><block type="variables_get" id="d-24z1zN7+p-(pC-GMYl"><field name="VAR">x</field></block></value><value name="B"><shadow type="math_number" id="#rRywjp#0VGXlS`~;;-k"><field name="NUM">2</field></shadow></value></block></value><value name="y"><shadow type="pins_exlcdv" id="b@@=;T//!w:H#+Mdnr^5"><field name="PIN">7</field></shadow></value><value name="STAT"><shadow type="display_onoff" id=";l(y|D7u`;9=weu*rHll"><field name="ONOFF">ON</field></shadow></value></block></next></block></next></block></statement></block></xml><config>{}</config><code>aW1wb3J0IG1peGdvX21pbmkKZnJvbSBtaXhnb19taW5pIGltcG9ydCBvbmJvYXJkX21hdHJpeAoKCmRlZiDmmL7npLrnr67lrZAoeCk6CiAgICBvbmJvYXJkX21hdHJpeC5waXhlbChpbnQoeCArIDApLCBpbnQoNyksIDEpCiAgICBvbmJvYXJkX21hdHJpeC5zaG93KCkKICAgIG9uYm9hcmRfbWF0cml4LnBpeGVsKGludCh4ICsgMSksIGludCg3KSwgMSkKICAgIG9uYm9hcmRfbWF0cml4LnNob3coKQogICAgb25ib2FyZF9tYXRyaXgucGl4ZWwoaW50KHggKyAyKSwgaW50KDcpLCAxKQogICAgb25ib2FyZF9tYXRyaXguc2hvdygpCgoKCuevruWtkOS9jee9riA9IDAKd2hpbGUgVHJ1ZToKICAgIGlmIG1peGdvX21pbmkuQjFrZXkud2FzX3ByZXNzZWQoKToKICAgICAgICDnr67lrZDkvY3nva4gKz0gMQogICAgICAgIG9uYm9hcmRfbWF0cml4LmZpbGwoMCkKICAgICAgICBvbmJvYXJkX21hdHJpeC5zaG93KCkKICAgIGlmIG1peGdvX21pbmkuQTFrZXkud2FzX3ByZXNzZWQoKToKICAgICAgICDnr67lrZDkvY3nva4gLT0gMQogICAgICAgIG9uYm9hcmRfbWF0cml4LmZpbGwoMCkKICAgICAgICBvbmJvYXJkX21hdHJpeC5zaG93KCkKICAgIOaYvuekuuevruWtkCjnr67lrZDkvY3nva4pCg==</code>