Debian Codegraph @

online/static/samples/WiFi and Games/Bird Game with Light Sensor.xml

raw symbols SCIP
1 <xml xmlns="https://developers.google.com/blockly/xml">
2 <description>
3 <![CDATA[
4
5 ## Bird game
6
7 addGame: Create a game
8 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)
9
10
11 Your phone has a built in light sensor.
12
13 The readings of the sensor increase with intensity of light falling on the light sensor which is usually located next to the front camera.
14
15 These readings are measured and used to set the height of the character in the game.
16
17 Stand under a tubelight and move the phone close and away from the light to observe how the bird moves along with it.
18
19 ]]>
20 </description>
21
22 <block type="add_game" id="3YCPo!vOJS|o7/NBf9#[" x="25" y="0">
23 <next>
24 <block type="controls_repeat_ext" id="ng~P`Ol9-.[1q1=SN^pU">
25 <value name="TIMES">
26 <shadow type="math_number" id="eCAq7h,Tp#T#5#UXVdMa">
27 <field name="NUM">10000</field>
28 </shadow>
29 </value>
30 <statement name="DO">
31 <block type="set_bird_y" id="Wl.)ky-Wt!w[_:zKLo#L">
32 <value name="Y">
33 <shadow type="math_number" id="S~pg(N]Su,l~c-0Rl9*m">
34 <field name="NUM">200</field>
35 </shadow>
36 <block type="get_phone_light" id="U3o32.78_b#50[5IvvFL">
37 <field name="CHANNEL">0</field>
38 </block>
39 </value>
40 </block>
41 </statement>
42 <next>
43 <block type="stop_game" id="csu/*}K@-iRufK-do++G"></block>
44 </next>
45 </block>
46 </next>
47 </block>
48 </xml>