-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
35 lines (35 loc) · 7.19 KB
/
main.blocks
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
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable type="KIND_SpriteKind" id=";9D*Tdj;%a`@Idq[_QAQ">Player</variable><variable type="KIND_SpriteKind" id="ZVitDx1Q6R+H+C`/kn7;">Projectile</variable><variable type="KIND_SpriteKind" id="T??aO@#f}E*#`.d#.{j5">Food</variable><variable type="KIND_SpriteKind" id="56SDCV3UsB/VvLjepfz.">Enemy</variable><variable id="@.^A=AJ%=M-B{UG8?+o*">mySprite</variable><variable id="U9-fIaSF4^R@|H(@.G1:">pulisia</variable></variables><block type="pxt-on-start" id="i7S~OW)JmOzsLd+u`ob*" x="0" y="0"><statement name="HANDLER"><block type="gamesetbackgroundcolor" id=")h7VZ*[ZQY{-F(23J)[Y"><value name="color"><shadow type="colorindexpicker" id="vV?1r|GB@HfM*O0:!U.8"><field name="index">15</field></shadow></value><next><block type="variables_set" id="QQB(PmltKK^@[/Db/jYq"><field name="VAR" id="@.^A=AJ%=M-B{UG8?+o*">mySprite</field><value name="VALUE"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number"><field name="NUM">0</field></shadow><block type="spritescreate" id="MDh`{(aXclM[g*3}R#[i"><value name="img"><shadow type="screen_image_picker" id="*,KqL`kGDu2yht1e64EE"><field name="img">img`
. . . . . . e e c c e e . . . .
. . . . . e 2 2 2 2 2 2 e . . .
. . . . 2 c 2 2 2 2 2 2 c 2 . .
. . . e 2 c 4 2 2 2 2 2 c 2 e .
. . . f 2 2 4 2 2 2 2 2 c 2 f .
. . . f 2 2 4 2 2 2 2 2 2 2 f .
. . . f 2 2 4 2 2 2 2 2 2 2 f .
. . . f 2 c 2 4 4 2 2 2 c 2 f .
. . . e 2 c e c c c c e c 2 e .
. . . e 2 e c b b b b c e 2 e .
. . . e 2 e b b b b b b e 2 e .
. . . e e e e e e e e e e e e .
. . . f e d e e e e e e d e f .
. . . f e 2 d e e e e d 2 e f .
. . . f f e e e e e e e e f f .
. . . . f f . . . . . . f f . .
`</field><data>{"commentRefs":[],"fieldData":{"img":"*,KqL`kGDu2yht1e64EE"}}</data></shadow></value><value name="kind"><shadow type="spritekind" id="1TuM7h#4G4qIo;%93i`H"><field name="MEMBER">Player</field></shadow></value></block></value><next><block type="game_control_sprite" id="9rLb+F*2KgK8vD@-,y%o"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="0" _input_init="true"></mutation><value name="sprite"><block type="variables_get" id="L]v|(+j*{J}j9BlsRJS$"><field name="VAR" id="@.^A=AJ%=M-B{UG8?+o*">mySprite</field></block></value><value name="vx"><shadow type="spriteSpeedPicker" id="dlSX}1_4;Z75H|Y2^Db^"><field name="speed">100</field></shadow></value><value name="vy"><shadow type="spriteSpeedPicker" id=")+f9[{~Iu^WQ^P3u@tU|"><field name="speed">100</field></shadow></value><next><block type="spritesetpos" id="w3]_Z]7M/]f1SIYmn}BL"><value name="sprite"><block type="variables_get" id="Eh5pbzYzG{Utsu%XI%*j"><field name="VAR" id="@.^A=AJ%=M-B{UG8?+o*">mySprite</field></block></value><value name="x"><shadow type="positionPicker" id="DX#tZ+Xf.$/|K4ZdsLqk"><field name="index">75</field></shadow></value><value name="y"><shadow type="positionPicker" id="l-G`tP.d@}%x6n+_i!c6"><field name="index">110</field></shadow></value><next><block type="spritesetsetbounceonwall" id="}NP0U1$i`31mor3UmRM+"><value name="sprite"><block type="variables_get" id="SB;XJYu3r@ch~v5YiQ$_"><field name="VAR" id="@.^A=AJ%=M-B{UG8?+o*">mySprite</field></block></value><value name="on"><shadow type="toggleOnOff" id=";8yJ?HkR4sAV0RY_:1Hd"><field name="on">true</field></shadow></value></block></next></block></next></block></next></block></next></block></statement></block><block type="forever" id="!qeQ{oCp[IP]XtU]^4SF" x="10" y="370"><statement name="HANDLER"><block type="function_call" id="%aZD:K*rm^m~OwXABwYX"><mutation name="createEnemy" functionid="T9^oXkw=C3ZAC19o|3W`"></mutation><next><block type="device_pause" id="yv}XF@p7N;y=~[Fw4?e="><value name="pause"><shadow type="timePicker" id="N`4=P#iOQ6#0vb^7$f(*"><field name="ms">1500</field></shadow></value></block></next></block></statement></block><block type="function_definition" id="xmYo2$gU]~C:sc}m2PQf" x="10" y="570"><mutation name="createEnemy" functionid="T9^oXkw=C3ZAC19o|3W`"></mutation><field name="function_name">createEnemy</field><statement name="STACK"><block type="variables_set" id="wxkaq_l,GTuHUBUeT9[p"><field name="VAR" id="U9-fIaSF4^R@|H(@.G1:">pulisia</field><value name="VALUE"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number"><field name="NUM">0</field></shadow><block type="spritescreate" id=",-X5HTNMOg*YgGE}u$NC"><value name="img"><shadow type="screen_image_picker" id="pyirsWv_XOex?}J.M=c_"><field name="img">img`
. . . . . . . . . . . . . . . .
. . . . . . 6 6 6 6 6 6 . . . .
. . . . . 6 6 9 9 6 6 6 6 . . .
. . . . . c 9 6 6 6 6 6 c . . .
. . . . 6 c 9 6 6 6 6 6 c 6 . .
. . . 8 6 c 9 6 6 6 6 6 c 6 8 .
. . . f 6 c 9 2 2 8 8 6 c 6 f .
. . . f 8 c 6 2 2 8 8 6 c 8 f .
. . . f 6 c 6 b b b b 6 c 6 f .
. . . 8 6 6 b c c c c b 6 6 8 .
. . . 8 8 b c c c c c c b 8 8 .
. . . f 8 9 9 9 9 9 9 9 9 8 f .
. . . f 8 d 6 6 6 6 6 6 d 8 f .
. . . . 6 d d 6 6 6 6 d d 6 f .
. . . . f 6 d 6 6 6 6 d 6 f . .
. . . . . 8 6 6 6 6 6 6 8 . . .
`</field><data>{"commentRefs":[],"fieldData":{"img":"pyirsWv_XOex?}J.M=c_"}}</data></shadow></value><value name="kind"><shadow type="spritekind" id="Z}u/H_^+N:66NO|;v,;8"><field name="MEMBER">Enemy</field></shadow></value></block></value><next><block type="spritesetpos" id="[D}!5^9bCx9#N[S#ZK@}"><value name="sprite"><block type="variables_get" id="832u0Th#vUV16lg]}4zm"><field name="VAR" id="U9-fIaSF4^R@|H(@.G1:">pulisia</field></block></value><value name="x"><shadow type="positionPicker"><field name="index">80</field></shadow><block type="device_random" id="[^QY;po7h6hna,A-UiTd"><value name="min"><shadow type="math_number" id="[m;m#m}tE6^Jc(-U[2V~"><field name="NUM">10</field></shadow></value><value name="limit"><shadow type="math_number" id="busuS1tk`}b/RtJ9-DSj"><field name="NUM">150</field></shadow></value></block></value><value name="y"><shadow type="positionPicker" id="qgXj.mK9FSo-`0{g09l]"><field name="index">0</field></shadow></value><next><block type="spritesetvel" id="rTwlzx}-nOo6n]1dT4w8"><value name="sprite"><block type="variables_get" id="=tIR?D}b[%z[bpApc+1N"><field name="VAR" id="U9-fIaSF4^R@|H(@.G1:">pulisia</field></block></value><value name="vx"><shadow type="spriteSpeedPicker" id="0$$MvG:D!6xl+EcV(?S,"><field name="speed">0</field></shadow></value><value name="vy"><shadow type="spriteSpeedPicker" id="1Sc!S_LLyNAKeuLV9;Bp"><field name="speed">50</field></shadow></value></block></next></block></next></block></statement></block><block type="spritesoverlap" id="/g=oEQG|v?w,ox36m^i@" x="-50" y="870"><value name="HANDLER_DRAG_PARAM_sprite"><shadow type="argument_reporter_custom" id="S+bO=]@NXK|PKft_oGK:"><mutation typename="Sprite"></mutation><field name="VALUE">sprite</field></shadow></value><value name="kind"><shadow type="spritekind" id="Kf_bgl.chIw:pd{dupAd"><field name="MEMBER">Player</field></shadow></value><value name="HANDLER_DRAG_PARAM_otherSprite"><shadow type="argument_reporter_custom" id="z=!]#R^GQ?myj#T@l-KQ"><mutation typename="Sprite"></mutation><field name="VALUE">otherSprite</field></shadow></value><value name="otherKind"><shadow type="spritekind" id="a^`=+Vnl!;O;,Hwcrp%!"><field name="MEMBER">Enemy</field></shadow></value><statement name="HANDLER"><block type="hudChangeLifeBy" id="5~D:zIW^5l5_5z+[D@4r"><value name="value"><shadow type="math_number" id="W@!3X67}Omfp%kl5^)+2"><field name="NUM">-1</field></shadow></value></block></statement></block></xml>