-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.blocks
More file actions
51 lines (51 loc) · 8.3 KB
/
main.blocks
File metadata and controls
51 lines (51 loc) · 8.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable type="KIND_SpriteKind" id=".@+9*6xd3Q65Ow;!Xl|#">Player</variable><variable type="KIND_SpriteKind" id="Z!ZQ%4`@,J-B[5q@$K%v">Projectile</variable><variable type="KIND_SpriteKind" id=".LlmkIF!UW.6.}6pYTEG">Food</variable><variable type="KIND_SpriteKind" id="S|?)xN?j_li^FLj8:.J5">Enemy</variable><variable id="H/E:;m)BK[*Tjj_v)+RQ">mySprite</variable><variable id="T37Q7ZE*rY:p?(CBaPIn">myEnemy</variable></variables><block type="function_definition" id="*:IVcZ9_Z=W1CMhs@,qj" x="0" y="0"><mutation name="spawnEnemy" functionid="y.jKhifvltLMg9K/QeW4"/><field name="function_name">spawnEnemy</field><statement name="STACK"><block type="variables_set" id="(}1ZC[rNEV;uDOdM3WQ-"><field name="VAR" id="T37Q7ZE*rY:p?(CBaPIn">myEnemy</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="spritescreate" id="U^HKoEBWN5]^`vGH^:K}"><value name="img"><shadow type="screen_image_picker" id=":pcr70P4-1.RJY+l0oHs"><field name="img">img`
. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . f f f f . . . . . . . . . . . . . . .
. . . f f f 2 2 f f f . . . . . . . . . . . . .
. . f f f 2 2 2 2 f f f . . . . . . . . . . . .
. f f f e e e e e e f f f . . . . . . . . . . .
. f f e 2 2 2 2 2 2 e e f . . . . . . . . . . .
. f e 2 f f f f f f 2 e f . . . . . . . . . . .
. f f f f e e e e f f f f . . . . . . . . . . .
f f e f b f 4 4 f b f e f f . . . . . . . . . .
f e e 4 1 f d d f 1 4 e e f . . . . . . . . . .
. f f f f d d d d d e e f . . . . . . . . . . .
f d d d d f 4 4 4 e e f . . . . . . . . . . . .
f b b b b f 2 2 2 2 f 4 e . . . . . . . . . . .
f b b b b f 2 2 2 2 f d 4 . . . . . . . . . . .
. f c c f 4 5 5 4 4 f 4 4 . . . . . . . . . . .
. . f f f f f f f f . . . . . . . . . . . . . .
. . . . f f . . f f . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . .
`</field></shadow></value><value name="kind"><shadow type="spritekind" id="F(flH|-0h/#9eb$D*VLX"><field name="MEMBER">Enemy</field></shadow></value></block></value><next><block type="spritesetsetflag" id="b4uD4Uk+K8oT,(5aiWAR"><field name="flag">SpriteFlag.StayInScreen</field><value name="sprite"><block type="variables_get" id="VFD[y5`UgMlMz~YnE.,@"><field name="VAR" id="T37Q7ZE*rY:p?(CBaPIn">myEnemy</field></block></value><value name="on"><shadow type="toggleOnOff" id=".ll!sotbzln]jSOD#L9/"><field name="on">true</field></shadow></value><next><block type="spritesetpos" id="k}GdI2JJEA-H+0v3m?zv"><value name="sprite"><block type="variables_get" id="qr8]zEuS;]FUzr7wx0lp"><field name="VAR" id="T37Q7ZE*rY:p?(CBaPIn">myEnemy</field></block></value><value name="x"><shadow type="positionPicker" id="xG/n![f}K.0X9G6Bt`^c"><field name="index">78</field></shadow></value><value name="y"><shadow type="positionPicker" id="godcCY@5p)tG5Hj7dqwB"><field name="index">56</field></shadow></value><next><block type="spriteFollowOtherSprite" id=";DC~y1c?L/v!NS-7JLAy"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="1" _input_init="true"></mutation><value name="sprite"><block type="variables_get" id="F30qg(m?XZa:?T$epU}L"><field name="VAR" id="T37Q7ZE*rY:p?(CBaPIn">myEnemy</field></block></value><value name="target"><block type="variables_get" id="T{Q}a:4+Qi8sn4rtl9jY"><field name="VAR" id="H/E:;m)BK[*Tjj_v)+RQ">mySprite</field></block></value><value name="speed"><shadow type="math_number" id="sh_P8=M~DWYs9TcF5xSb"><field name="NUM">10</field></shadow></value></block></next></block></next></block></next></block></statement></block><block type="pxt-on-start" id="##oE{_i`BU1QDus4*fEx" x="0" y="340"><statement name="HANDLER"><block type="variables_set" id="[(zBY$IJ0YMH9F7#44Z?"><field name="VAR" id="H/E:;m)BK[*Tjj_v)+RQ">mySprite</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="spritescreate" id="?[(jF}:@Bor6u6jCyPy-"><value name="img"><shadow type="screen_image_picker" id="#x;5A-N40%sg+wPmgT#/"><field name="img">img`
. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . f f f f . . . . . . . . . .
. . . . . . . . f f 1 1 1 1 f f . . . . . . . .
. . . . . . . f b 1 1 1 1 1 1 b f . . . . . . .
. . . . . . . f 1 1 1 1 1 1 1 1 f . . . . . . .
. . . . . . f d 1 1 1 1 1 1 1 1 d f . . . . . .
. . . . . . f d 1 1 1 1 1 1 1 1 d f . . . . . .
. . . . . . f d d d 1 1 1 1 d d d f . . . . . .
. . . . . . f b d b f d d f b d b f . . . . . .
. . . . . . f c d c f 1 1 f c d c f . . . . . .
. . . . . . . f b 1 1 1 1 1 1 b f . . . . . . .
. . . . . . f f f c d b 1 b d f f f f . . . . .
. . . . f c 1 1 1 c b f b f c 1 1 1 c f . . . .
. . . . f 1 b 1 b 1 f f f f 1 b 1 b 1 f . . . .
. . . . f b f b f f f f f f b f b f b f . . . .
. . . . . . . . . f f f f f f . . . . . . . . .
. . . . . . . . . . . f f f . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . .
`</field></shadow></value><value name="kind"><shadow type="spritekind" id="qI#WDcOZ[bsWVdv[,W^p"><field name="MEMBER">Player</field></shadow></value></block></value><next><block type="spritesetsetflag" id="+tTz8z0KA_8_dD866pm`"><field name="flag">SpriteFlag.StayInScreen</field><value name="sprite"><block type="variables_get" id="{o4)tE0W[O]L-jED~K.c"><field name="VAR" id="H/E:;m)BK[*Tjj_v)+RQ">mySprite</field></block></value><value name="on"><shadow type="toggleOnOff" id="?5Npx!7P[cn_+y@Fl^a#"><field name="on">true</field></shadow></value><next><block type="spritesetpos" id="@sKv,o}B!1p,5H$Ln%8l"><value name="sprite"><block type="variables_get" id=":Mc5`5R)jkRk%EcZQ$=%"><field name="VAR" id="H/E:;m)BK[*Tjj_v)+RQ">mySprite</field></block></value><value name="x"><shadow type="positionPicker" id="aSI}8x+)4m,m{!=1s=J:"><field name="index">16</field></shadow></value><value name="y"><shadow type="positionPicker" id="P`uIseH5Nb:u|u9kOyGN"><field name="index">64</field></shadow></value><next><block type="game_control_sprite" id="OYUmDnS$xWrlg%AKGGo-"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="0" _input_init="true"></mutation><value name="sprite"><block type="variables_get" id="L9,9S)M^427{v}68]):?"><field name="VAR" id="H/E:;m)BK[*Tjj_v)+RQ">mySprite</field></block></value><value name="vx"><shadow type="math_number" id="CsAgA_IJKeW#u~PFvZPz"><field name="NUM">100</field></shadow></value><value name="vy"><shadow type="math_number" id="BYT;oo9e;`GyW+sx0~Hk"><field name="NUM">100</field></shadow></value><next><block type="function_call" id="-H@$B=lh(l7RgwPa[FlG"><mutation name="spawnEnemy" functionid="y.jKhifvltLMg9K/QeW4"/></block></next></block></next></block></next></block></next></block></statement></block><block type="keyonevent" id="u!#_4*I(/=xkhZK]e1r%" x="0" y="720"><field name="button">controller.A</field><field name="event">ControllerButtonEvent.Pressed</field><statement name="HANDLER"><block type="spritedestroy" id="EIa8U0):h,iCY;vw@L73"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="0" _input_init="false"></mutation><value name="sprite"><block type="variables_get" id="4N=S.bh;f4l%EQrWIdI0"><field name="VAR" id="T37Q7ZE*rY:p?(CBaPIn">myEnemy</field></block></value></block></statement></block><block type="spritesondestroyed" id="tT[gn+|[7wYhGtv04q)M" x="0" y="880"><value name="HANDLER_DRAG_PARAM_sprite"><shadow type="argument_reporter_custom" id="2zdZJwoN_?vR=1aI~$E8"><mutation typename="Sprite"/><field name="VALUE">sprite</field></shadow></value><value name="kind"><shadow type="spritekind" id="8elK,RT;.rZy4^|C/uu;"><field name="MEMBER">Enemy</field></shadow></value><statement name="HANDLER"><block type="device_pause" id="dC(-[3B[w6Wb2)=(%H{M"><value name="pause"><shadow type="timePicker" id="(fK[(_-[u8NV[:xT2i@)"><field name="ms">500</field></shadow></value><next><block type="function_call" id="2Be5;e7dsBnAU72I)Ewz"><mutation name="spawnEnemy" functionid="y.jKhifvltLMg9K/QeW4"/></block></next></block></statement></block></xml>