forked from milnepe/microbit-force-actor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.blocks
1 lines (1 loc) · 4.05 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="+ig#VxoYIr:M%b[_FUd2">direction</variable><variable id="I:jrF?hcqM-)n~UZ?z?!">lift</variable><variable id="oaobqxu9EIw*)iwYKWbO">drop</variable><variable id="^Xff_Ff*EZhF+eVQ1t;$">index</variable><variable id="IU)9[%6$geC}j?DHzqyU">isDone</variable><variable id="Qpx/UQkM,[J_E(Cj^VZo">enable</variable><variable id="PnawyUBkqK)Je3{@.MT[">disable</variable><variable id="jr95CRdC72XF]}(WHZn`">delay</variable><variable id="IVLmISel$]vO*:9_|1SJ">force</variable></variables><block type="pxt-on-start" id="h-A_0WO6$FU:]b//mX3y" x="0" y="0"><statement name="HANDLER"><block type="radio_set_group" id="T(sTNRRUmLPO85z^m[!*"><value name="ID"><shadow type="math_number_minmax" id="rHhI(fg#N9a1;uieNVeW"><mutation min="0" max="255" label="Id" precision="0"/><field name="SLIDER">1</field></shadow></value><next><block type="variables_set" id="Hq07]c80sO.QWY%f=L.("><field name="VAR" id="I:jrF?hcqM-)n~UZ?z?!">lift</field><value name="VALUE"><shadow type="math_number" id="dlX$N.9YjTvxLzdH4tbA"><field name="NUM">1</field></shadow></value><next><block type="variables_set" id="~RUHIB,(tI~m]ZbkH+zv"><field name="VAR" id="oaobqxu9EIw*)iwYKWbO">drop</field><value name="VALUE"><shadow type="math_number" id="|b.!hoYY]xOQZE^uL.3|"><field name="NUM">0</field></shadow></value></block></next></block></next></block></statement></block><block type="function_definition" id="nGH*M|hOrFmcKvD.XaNm" x="741" y="1"><mutation name="useTheForce" functionid="h.O%{E$^A8~n7(9Fz$VB"/><field name="function_name">useTheForce</field><statement name="STACK"><block type="i2c_writenumber" id="@YAm|6$m.IK2PWj#0Qu)"><field name="format">NumberFormat.Int8LE</field><value name="address"><shadow type="math_number" id="`|?3!6/RIf?-^.b7-Xcn"><field name="NUM">4</field></shadow></value><value name="value"><shadow type="math_number"><field name="NUM">1</field></shadow><block type="variables_get" id="7*j6]o1-Uf]e_DfggB+*"><field name="VAR" id="IVLmISel$]vO*:9_|1SJ">force</field></block></value><value name="repeat"><shadow type="logic_boolean" id="i(Z9eUQarOv;~/%A~}:w"><field name="BOOL">FALSE</field></shadow></value></block></statement></block><block type="radio_on_string_drag" id="X-~MUm9xC*ois606QptM" x="239" y="201"><value name="HANDLER_DRAG_PARAM_receivedString"><shadow type="argument_reporter_string" id="Qh@6D/Gkoh;mXx|g^}Lm"><field name="VALUE">receivedString</field></shadow></value><statement name="HANDLER"><block type="controls_if" id=",HS,_r9j]!}%4WPY3[70"><mutation else="1"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="*@^x4.z``%tHRq%:XS@}"><field name="OP">EQ</field><value name="A"><shadow type="text"><field name="TEXT"/></shadow><block type="argument_reporter_string" id="Q)r)q+]|*hT,)^LrMXv6"><field name="VALUE">receivedString</field></block></value><value name="B"><shadow type="text" id="LLoGOzL^b+#VED4t8,Gv"><field name="TEXT">lift</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="rfUwNQf5JFH+mI(.m=SD"><field name="VAR" id="IVLmISel$]vO*:9_|1SJ">force</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="[M,0k1fN%@@H,KKfaOkG"><field name="VAR" id="I:jrF?hcqM-)n~UZ?z?!">lift</field></block></value><next><block type="basic_show_icon" id="p+VY1O-sjr{s|Nz^ZNyl"><field name="i">IconNames.Yes</field></block></next></block></statement><statement name="ELSE"><block type="variables_set" id="jIVY{?!_F|7GM,3e26v@"><field name="VAR" id="IVLmISel$]vO*:9_|1SJ">force</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="YijY]x@Y+G#m4t#A)v]M"><field name="VAR" id="oaobqxu9EIw*)iwYKWbO">drop</field></block></value><next><block type="basic_show_icon" id="F./jSD{{[E*Yxi;uFN#6"><field name="i">IconNames.No</field></block></next></block></statement><next><block type="function_call" id="?DsVz@2434V%Mk.PCE]I"><mutation name="useTheForce" functionid="h.O%{E$^A8~n7(9Fz$VB"/></block></next></block></statement></block></xml>