-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.blocks
104 lines (104 loc) · 16.5 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable type="BLOCKLY_TILESET_TYPE" id="5#Uzu%K:|K6M??6}r:51">0;16;16;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</variable><variable type="BLOCKLY_TILESET_TYPE" id="Q!DiiP[IT1?bh@=$a)wn">1;16;16;dddddddddddddddddddddd8ddddddddddddddd8ddddddddddddddd88d8dddddddddd8d8888dddddddddd888888d8dddddd8d88888888dddddd8888688888d8dd88888866868888888888686666888888888866666686888866666666666666666666660666666666666666006066666666600600006606660000000000000060</variable><variable id="0KLK%jcV.6@D1maIQ$Nt">FishChoice</variable><variable id="v,WEomqOtC(..B5?JD*`">projectile</variable><variable id="e;%W1{*ukL(h6q(#,v,Z">sharkie</variable><variable id="|1wNv(fsdvi[1Th*b@p;">mySprite</variable><variable type="KIND_SpriteKind" id="d@dem~6d~nQdT!K]s7wv">Player</variable><variable type="KIND_SpriteKind" id="l8?fau-@akY[h(VS9UII">Projectile</variable><variable type="KIND_SpriteKind" id="d3U,o[p-,@deB{=hj.2j">Food</variable><variable type="KIND_SpriteKind" id="0Q|v172%--*f;wz?]j|[">Enemy</variable></variables><block type="pxt-on-start" id="Hx5xu+}a|=+OVf#dYYa5" x="0" y="0"><statement name="HANDLER"><block type="gamesetbackgroundcolor" id="e!LjAi6D!|UGl?$MBtpf"><value name="color"><shadow type="colorindexpicker" id="]zx8q?=iZF],vEnsHC|P"><field name="index">9</field></shadow></value><next><block type="tilemap_editor" id="e-6fv*6))ya?u%m5K;d6"><field name="tilemap">tiles.createTilemap(
hex`10000c000e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0304040404040404040404040404040600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000`,
img`
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
`,
[myTiles.tile0,sprites.builtin.coral0,sprites.builtin.oceanDepths8,sprites.builtin.oceanSand1,sprites.builtin.oceanSand2,sprites.builtin.oceanSand7,sprites.builtin.oceanSand3,sprites.builtin.oceanDepths2,sprites.builtin.coral5,sprites.builtin.oceanSand13,sprites.builtin.oceanSand9,sprites.builtin.oceanSand5,sprites.builtin.coral3,sprites.builtin.oceanSand6,myTiles.tile1,sprites.builtin.coral1,sprites.castle.rock1,sprites.dungeon.darkGroundNorthEast1,sprites.dungeon.darkGroundEast,sprites.castle.rock0],
TileScale.Sixteen
)</field><next><block type="variables_set" id="T:6.RH6v1VMy?qx)@X5C"><field name="VAR" id="|1wNv(fsdvi[1Th*b@p;">mySprite</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="spritescreate" id="xs]?nE8~7SmolunLbZyT"><value name="img"><shadow type="screen_image_picker" id="oyHPJ=1M^pTl9O/90s~Z"><field name="img">img`
. . . . . . 5 . 5 . . . . . . .
. . . . . f 5 5 5 f f . . . . .
. . . . f 1 5 2 5 1 6 f . . . .
. . . f 1 6 6 6 6 6 1 6 f . . .
. . . f 6 6 f f f f 6 1 f . . .
. . . f 6 f f d d f f 6 f . . .
. . f 6 f d f d d f d f 6 f . .
. . f 6 f d 3 d d 3 d f 6 f . .
. . f 6 6 f d d d d f 6 6 f . .
. f 6 6 f 3 f f f f 3 f 6 6 f .
. . f f 3 3 5 3 3 5 3 d f f . .
. . . f d f 3 5 5 3 f d f . . f
. . . f d f 3 3 3 3 3 d f . f 3
. . . f f 3 5 3 3 5 3 f f f f 3
. . . . f f 3 3 3 3 3 3 3 3 3 3
. . . . . . 3 9 3 3 3 3 3 9 3 f
`</field></shadow></value><value name="kind"><shadow type="spritekind" id="5WtTDZFAK[*qknnn;8KT"><field name="MEMBER">Player</field></shadow></value></block></value><next><block type="game_control_sprite" id="y@Cg^NIHGVSA]1i/Pp}X"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="0" _input_init="false"></mutation><value name="sprite"><shadow type="variables_get" id="tgzOFU:pM+Ve`1CmE(%R"><field name="VAR" id="|1wNv(fsdvi[1Th*b@p;">mySprite</field></shadow></value><next><block type="spritesetsetflag" id="k+2I}GgK3Kz0RsWpkz_["><field name="flag">SpriteFlag.StayInScreen</field><value name="sprite"><block type="variables_get" id="eluFGp?G9q]1a`SXatfS"><field name="VAR" id="|1wNv(fsdvi[1Th*b@p;">mySprite</field></block></value><value name="on"><shadow type="toggleOnOff" id="iNl}@Sq2IUGRtvH%|FW5"><field name="on">true</field></shadow></value><next><block type="hudsetScore" id="As2PCxf3]:)Iy/_X]Mh2"><value name="value"><shadow type="math_number" id=":YsFor|O;KJ6zzg,s:2;"><field name="NUM">0</field></shadow></value><next><block type="hudSetLife" id="Yj7n|bjC|WrS:IDpNA$b"><value name="value"><shadow type="math_number" id="nX?gd=njM}ua+Iq95bf$"><field name="NUM">3</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="spritesoverlap" id="*{8zj%~P*4GZQ!oMI=xV" x="574" y="0"><value name="HANDLER_DRAG_PARAM_sprite"><shadow type="argument_reporter_custom" id="S[QoiHs=@l`P^}i?a+y%"><mutation typename="Sprite"/><field name="VALUE">sprite</field></shadow></value><value name="kind"><shadow type="spritekind" id="^opgcyQ{936@Y.]4-7Vn"><field name="MEMBER">Player</field></shadow></value><value name="HANDLER_DRAG_PARAM_otherSprite"><shadow type="argument_reporter_custom" id="6=gtW:`8`sZ_D-D|GZ|$"><mutation typename="Sprite"/><field name="VALUE">otherSprite</field></shadow></value><value name="otherKind"><shadow type="spritekind" id="5kKw2dvkV-7LZ%nCGjE`"><field name="MEMBER">Food</field></shadow></value><statement name="HANDLER"><block type="hudChangeScoreBy" id="M!G00cP}j$nB{tYh%F4f"><value name="value"><shadow type="math_number" id="{,YHGOO7y:`O/H$fL-Bb"><field name="NUM">1</field></shadow></value><next><block type="spritedestroy" id="gJRrm]}0ECvs.p,E7zK8"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="2" _input_init="true"></mutation><field name="effect">effects.hearts</field><value name="sprite"><block type="argument_reporter_custom" id="wKWn`KWwt%~bPI7tzDx%"><mutation typename="Sprite"/><field name="VALUE">otherSprite</field></block></value><value name="duration"><shadow type="timePicker" id="5b6ee@@hzu%/5F{$WP$h"><field name="ms">100</field></shadow></value><next><block type="mixer_play_sound" id="+}5T@`X@:M3;W-ILi3DB"><field name="sound">music.baDing</field></block></next></block></next></block></statement></block><block type="gameinterval" id="$Z;L^e(I2HMfZFhWs%Ro" x="1260" y="0"><comment id="undefined" pinned="false" h="80" w="160">every half a second spawn a fish</comment><value name="period"><shadow type="timePicker" id="sswWWF;[TIq!ko_Mta,M"><field name="ms">500</field></shadow></value><statement name="HANDLER"><block type="variables_set" id="IlEt2~|/$.z0!s4}|FaP"><field name="VAR" id="0KLK%jcV.6@D1maIQ$Nt">FishChoice</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_random" id="D:uFQ2{IrcFdh5,=]^K0"><value name="min"><shadow type="math_number" id="J,g3r51?sl/^%L1C-[g."><field name="NUM">0</field></shadow></value><value name="limit"><shadow type="math_number" id=",x!5j8.(|NmaX3$%D8v%"><field name="NUM">2</field></shadow></value></block></value><next><block type="controls_if" id="vz*cubKFr}}%/DMyX,A4"><mutation elseif="1" else="1"/><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="qwh8}ZX%R4*$WJPT?$qv"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="?j*c8Pphu_D:2V^`KXVQ"><field name="VAR" id="0KLK%jcV.6@D1maIQ$Nt">FishChoice</field></block></value><value name="B"><shadow type="math_number" id="1penhlx^^z|hJoF1pm1`"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="mGr!M.|W[biKuD}])8a~"><field name="VAR" id="v,WEomqOtC(..B5?JD*`">projectile</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="spritescreateprojectilefromside" id="Ban~v%_:ZK9(_B!/npp$"><value name="img"><shadow type="screen_image_picker" id="%[VFDf7{AS}90%2eVZ=!"><field name="img">img`
. . . . . . . . . . . . . . . .
. . . . . . . c c c c c c . . .
. . . . . . c 5 5 5 5 5 c c . .
. . . . . c 5 5 5 5 5 5 5 5 c .
. . . . c b b b b b b 5 5 5 c .
. . . . c b b b b 1 b b c c . .
. . . . c 1 1 b b 1 1 1 c . . .
. . . c 1 1 1 1 b 1 1 1 c . . .
. . . c 1 1 1 1 b 1 1 1 b b c c
. . c c d 1 1 1 b 1 b 1 5 5 5 c
. . c c d 1 c 1 1 1 b 1 b b 5 c
. c c d d 1 1 1 1 1 b 1 f b 5 c
f d d d 1 1 1 1 1 b b b f . c c
f f f f f 1 1 1 b b 5 5 5 f . .
. . . . . f f f 5 5 5 5 5 f . .
. . . . . . . . f f f f f f . .
`</field></shadow></value><value name="vx"><shadow type="spriteSpeedPicker" id="Sv8-fAkvHLG,ebpkMfEF"><field name="speed">-50</field></shadow></value><value name="vy"><shadow type="spriteSpeedPicker" id="|BX-Km$JW]3~@Rn#nC.)"><field name="speed">0</field></shadow></value></block></value></block></statement><value name="IF1"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="8OgaR7OdNVl$RAH7(1mY"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="N*Ue53a4@wl|/53Dqh)+"><field name="VAR" id="0KLK%jcV.6@D1maIQ$Nt">FishChoice</field></block></value><value name="B"><shadow type="math_number" id="^5h4BmU$9]wW!9_osK!#"><field name="NUM">1</field></shadow></value></block></value><statement name="DO1"><block type="variables_set" id="neVWlmWF:WwC*F;Cn{5d"><field name="VAR" id="v,WEomqOtC(..B5?JD*`">projectile</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="spritescreateprojectilefromside" id="sBHZTJ5mY*[@2#UjuxnU"><value name="img"><shadow type="screen_image_picker" id="[wvG5/wLI^Rlt8=#=Pm}"><field name="img">img`
. . . . . . . . c c c c . . . .
. . . . . . c c d d d d c . . .
. . . . . c c c c c c d c . . .
. . . . c c 4 4 4 4 d c c . c c
. . . c 4 d 4 4 4 4 4 1 c c 4 c
. . c 4 4 4 1 4 4 4 4 d 1 c 4 f
. c 4 4 4 4 1 4 4 4 4 4 1 4 4 f
f 4 4 4 4 4 1 1 c f 4 4 1 f 4 f
f 4 4 4 f 4 1 c 4 f 4 4 1 f 4 f
f 4 4 4 4 4 1 4 4 f 4 4 d f f f
. f 4 4 4 4 1 c c 4 4 d f f . .
. . f f 4 d 4 4 4 4 4 c f . . .
. . . . f f 4 4 4 4 c d b c . .
. . . . . . f f f f d d d c . .
. . . . . . . . . . c c c . . .
. . . . . . . . . . . . . . . .
`</field></shadow></value><value name="vx"><shadow type="spriteSpeedPicker" id="rz/%g?o/??#1zr[rHS@f"><field name="speed">-50</field></shadow></value><value name="vy"><shadow type="spriteSpeedPicker" id="Ufy6_AE#j[|~0ZN;lz1o"><field name="speed">0</field></shadow></value></block></value></block></statement><statement name="ELSE"><block type="variables_set" id="twp%M*`6-R3dn;IYtbF["><field name="VAR" id="v,WEomqOtC(..B5?JD*`">projectile</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="spritescreateprojectilefromside" id="#dH?^8$gf9b}Payfd?6U"><value name="img"><shadow type="screen_image_picker" id="CJLrmH77,/HRMl$0oY#P"><field name="img">img`
. . . . . . . . . . . . . . . . . . . c c . . .
. . . . . . . . . . . . . . . c c c c 6 3 c . .
. . . . . . . . . . . . . . c 6 3 3 3 3 6 c . .
. . . . . . . . . . c c . c 6 c c 3 3 3 3 3 c .
. . . . . . . . . b 5 5 c 6 c 5 5 c 3 3 3 3 3 c
. . . . . . . . . f f 5 c 6 c 5 f f 3 3 3 3 3 c
. . . . . . . . . f f 5 c 6 c 5 f f 6 3 3 3 c c
. . . . . . . . . b 5 5 3 c 3 5 5 c 6 6 6 6 c c
. . . . . . . . . . b 5 5 3 5 5 c 3 3 3 3 3 3 c
. . . . . . . . . c c 5 5 5 5 5 b c c 3 3 3 3 c
. . . . . . . . c 5 5 4 5 5 5 4 b 5 5 c 3 3 c .
. . . . . . . . b 5 4 b 4 4 4 4 b b 5 c b b . .
. . . . . . . . c 4 5 5 b 4 b 5 5 5 4 c 4 5 b .
. . . . . . . . c 5 5 5 c 4 c 5 5 5 c 4 c 5 c .
. . . . . . . . c 5 5 5 5 c 5 5 5 5 c 4 c 5 c .
. . . . . . . . . c c c c c c c c c . . c c c .
`</field></shadow></value><value name="vx"><shadow type="spriteSpeedPicker" id="o*pxulwC6sNv^HslI~~h"><field name="speed">-50</field></shadow></value><value name="vy"><shadow type="spriteSpeedPicker" id="@u:?/00J=ks86h#~(t,L"><field name="speed">0</field></shadow></value></block></value></block></statement><next><block type="spritesetpos" id="%h%HPOoXeoc!$7~{smkW"><value name="sprite"><block type="variables_get" id="eh(0B;eKNod=zYc|S#q7"><field name="VAR" id="v,WEomqOtC(..B5?JD*`">projectile</field></block></value><value name="x"><shadow type="positionPicker" id="8d1cRsj-+!+Sm.FdDG@P"><field name="index">160</field></shadow></value><value name="y"><shadow type="positionPicker"/><block type="device_random" id="Fp$d?KHT#-P!H-,;JfuQ"><value name="min"><shadow type="math_number" id="DDAHVSA.6X*Hk$/vLEIQ"><field name="NUM">10</field></shadow></value><value name="limit"><shadow type="math_number" id=":=6p}QRH@KxDq4dGPY[2"><field name="NUM">120</field></shadow></value></block></value><next><block type="spritesetkind" id="1lAep/l{foTKk-R2:Y97"><value name="sprite"><block type="variables_get" id=",Sa5U5IS4IbZQe}Jd34C"><field name="VAR" id="v,WEomqOtC(..B5?JD*`">projectile</field></block></value><value name="kind"><shadow type="spritekind" id="H}UFKLdn/gk!0xd|KRva"><field name="MEMBER">Food</field></shadow></value></block></next></block></next></block></next></block></statement></block><block type="gameinterval" id="2V8tZZY{[sl=0o;jBC9P" x="110" y="490"><value name="period"><shadow type="timePicker" id="b6i1%NW%14t16p)G.|Bz"><field name="ms">1000</field></shadow></value><statement name="HANDLER"><block type="variables_set" id="h!f(mofqZ`Z(J_njPZY|"><field name="VAR" id="e;%W1{*ukL(h6q(#,v,Z">sharkie</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="spritescreateprojectilefromside" id="CjGgoguhU(}HEjQnT@j@"><value name="img"><shadow type="screen_image_picker" id="O%8-.3JD04(#,IN{1)Z8"><field name="img">img`
. . . . . . . . . . . . . . . . . . . . c c f f f . . . . . . . . . . .
. . . . . . . . . . f f f f f f f f f c b b b b f . . . . . . . . . . .
. . . . . . . . . f b b b b b b b b b f f f b f . . . . . . . . . . . .
. . . . . . . . . f b b 1 1 1 b f f b b b b f f . . . . . . . . . . . .
. . . . . . . . . f b 1 1 1 1 1 f f b b b b b c f f . . . . . . . . . .
. . . . . . . . . f 1 c c c c 1 1 b b c b c b c c c f . . . . . . . . .
. . . . . . . . . . f c 1 c 1 c 1 b b b c b c b c c c f . . . c c c c c
. . . . . . . . . . . . c 3 3 3 1 b b b c b c b c c c c f c c d d b b c
. . . . . . . . . . . c 3 3 3 c 1 b b b b b b b c c c c c b d d b c c .
. . . . . . . . . . . c 3 3 1 c 1 1 b b b b b c c c c c c c b b c c . .
. . . . . . . . . . c c 1 3 c 1 1 1 b b b b c c c c c c f f b c c f . .
. . . . . . . . . . c 1 1 1 1 1 1 c b b b c c c c c b b c . f c c f . .
. . . . . . . . . . . c c 1 1 1 1 c b b b f d d d d d c . . f b b c f .
. . . . . . . . . . . . . c c c f f b d b b f d d d c . . . . f b b f .
. . . . . . . . . . . . . . . . . . f b d b b f c c . . . . . . f b b f
. . . . . . . . . . . . . . . . . . . f f f f f . . . . . . . . . f f f
`</field></shadow></value><value name="vx"><shadow type="spriteSpeedPicker" id="T.5#)xfjY5(nW/b#,la["><field name="speed">-50</field></shadow></value><value name="vy"><shadow type="spriteSpeedPicker" id="QovkIX9,H1.zUC;{lK#w"><field name="speed">0</field></shadow></value></block></value><next><block type="spritesetpos" id="J(!OteTNot:ixHdHo-N#"><value name="sprite"><block type="variables_get" id="*M@kJqEObUb1*6;gWTU,"><field name="VAR" id="e;%W1{*ukL(h6q(#,v,Z">sharkie</field></block></value><value name="x"><shadow type="positionPicker" id="J:2gO$FCy`;Hs0JVh)C:"><field name="index">160</field></shadow></value><value name="y"><shadow type="positionPicker"/><block type="device_random" id="u5DDLqv1m-?5[I:{IY!^"><value name="min"><shadow type="math_number" id="zaE)|M)=R9kP}k-#@:Jf"><field name="NUM">10</field></shadow></value><value name="limit"><shadow type="math_number" id="_L1!l6d!m+G}E,+~6i7l"><field name="NUM">120</field></shadow></value></block></value><next><block type="spritesetkind" id="^9Ko#{5.;ygP:qA[j#qU"><value name="sprite"><block type="variables_get" id="E4_8!-p;8@]C@4|M2zg_"><field name="VAR" id="e;%W1{*ukL(h6q(#,v,Z">sharkie</field></block></value><value name="kind"><shadow type="spritekind" id="{$Z;jOg*}+2E/k%8zoi("><field name="MEMBER">Enemy</field></shadow></value></block></next></block></next></block></statement></block></xml>