Debian Codegraph @

online/static/samples/Vision Demos/AI birdy.xml

raw symbols SCIP
1 <xml xmlns="https://developers.google.com/blockly/xml">
2 <variables>
3 <variable id="(eG:3Li8hL6{B*coh|%{">height</variable>
4 </variables>
5 <block type="add_mp_hands" id="PmpiSG1J7]?u]Qn0x`6A" x="-2" y="-352">
6 <next>
7 <block type="add_game" id="3YCPo!vOJS|o7/NBf9#[">
8 <next>
9 <block type="controls_whileUntil" id="{_DYrgvpuQ]o4DNAL(@c">
10 <field name="MODE">WHILE</field>
11 <value name="BOOL">
12 <shadow type="logic_boolean" id="$:VeO#~_9=s}L[+8i)nP">
13 <field name="BOOL">TRUE</field>
14 </shadow>
15 </value>
16 <statement name="DO">
17 <block type="controls_if" id="K+ZV~+Y14@?0=peOQVtl">
18 <value name="IF0">
19 <block type="ai_isHandAvailable" id="%Z`jR$L1A!{qhYi#`VX["></block>
20 </value>
21 <statement name="DO0">
22 <block type="variables_set" id="_7zX2{OAM)%2nV1uq|00">
23 <field name="VAR" id="(eG:3Li8hL6{B*coh|%{">height</field>
24 <value name="VALUE">
25 <block type="math_arithmetic" id="bxX+.6.-Mea/_I|nK(:]">
26 <field name="OP">MULTIPLY</field>
27 <value name="A">
28 <shadow type="math_number" id="M3ty:b[3c|X8FDz740HX">
29 <field name="NUM">2000</field>
30 </shadow>
31 </value>
32 <value name="B">
33 <shadow type="math_number" id="DV.Iq`Mh[$.DMy[h2}xW">
34 <field name="NUM">1</field>
35 </shadow>
36 <block type="ai_distance" id="@G,9avKwi6w3KtnJw?1U">
37 <field name="finger_joint_1">4</field>
38 <field name="finger_joint_2">8</field>
39 </block>
40 </value>
41 </block>
42 </value>
43 <next>
44 <block type="set_bird_y" id="Wl.)ky-Wt!w[_:zKLo#L">
45 <value name="Y">
46 <shadow type="math_number" id="S~pg(N]Su,l~c-0Rl9*m">
47 <field name="NUM">200</field>
48 </shadow>
49 <block type="variables_get" id="zI_Fr`@g#$9C4I8yx(AN">
50 <field name="VAR" id="(eG:3Li8hL6{B*coh|%{">height</field>
51 </block>
52 </value>
53 </block>
54 </next>
55 </block>
56 </statement>
57 <next>
58 <block type="wait_seconds" id="UU%OX4Rl^X!wa.N|v4*+">
59 <field name="SECONDS">0.01</field>
60 </block>
61 </next>
62 </block>
63 </statement>
64 <next>
65 <block type="stop_game" id="csu/*}K@-iRufK-do++G"></block>
66 </next>
67 </block>
68 </next>
69 </block>
70 </next>
71 </block>
72 <description>
73 <![CDATA[<h2>Bird game</h2><p>Tilt your phone up and down to move the bird up/Down.</p><p>addGame: Create a game set bird altitude; The height of the bird from the floor of the game box is set to the input number. It should be between 0(floor), and 1000(Roof)</p><p>Your phone has a built in rotation sensor.</p><p>The rotation values are between -1 and 1</p><p>These readings are measured and scaled to 0 to 1000 range by using basic arithmetic operators, and are then used to set the height of the character in the game.</p><p>Tilt your phone up and down to move the bird up/Down.</p>]]>
74 </description>
75 </xml>