-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
18 lines (18 loc) · 5.65 KB
/
main.blocks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="!]odfftN?0W36{33Ve9g">mySprite</variable><variable type="KIND_SpriteKind" id="R3Xr-*M@H]10)pT#OMHe">Player</variable><variable type="KIND_SpriteKind" id=")Tp6mI$+=]%t^E,NVjE{">Projectile</variable><variable type="KIND_SpriteKind" id="5yHeYZ7,uVyZMA-e2Y[P">Food</variable><variable type="KIND_SpriteKind" id="F0yNzh~wz{5HkkLTS:p*">Enemy</variable></variables><block type="pxt-on-start" id="9iciNt}orS/iZ7K2U^B:" x="0" y="0"><statement name="HANDLER"><block type="set_current_tilemap" id="|.WlyNxSr(-ptEFO+3f5"><value name="tilemap"><shadow type="tiles_tilemap_editor" id="rwS:;]Cg_._egal~ieCD"><field name="tilemap">tilemap`層級3`</field><data>{"commentRefs":[],"fieldData":{"tilemap":"層級3"}}</data></shadow></value><next><block type="variables_set" id="Z5Vi;h8E:bIEv7MzN]yL"><field name="VAR" id="!]odfftN?0W36{33Ve9g">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="4u+v7Ao-q6`b]*BE;NN@"><value name="img"><shadow type="screen_image_picker" id="6A;^;SK:GJMkHBE$XyNN"><field name="img">img`
. . . . . . . . . . . . . .
. . . . a a a a a a . . . .
. . . a 1 1 1 1 1 1 a . . .
. . . a 1 1 1 1 1 1 a . . .
. . . a 1 1 1 1 1 1 a . . .
. . . a 1 1 1 1 1 1 a . . .
. . . a 1 1 1 1 1 1 a . . .
. . . a 1 1 1 1 1 1 a . . .
. . . . a a a a a a . . . .
. . . . . . a a . . . . . .
. . . . . . a a . . . . . .
. . . . . . a a . . . . . .
. . . a a a a a a a a . . .
. . . . . . a a . . . . . .
. . . . . . a a . . . . . .
. . . . . a . . a . . . . .
`</field><data>{"commentRefs":[],"fieldData":{"img":"6A;^;SK:GJMkHBE$XyNN"}}</data></shadow></value><value name="kind"><shadow type="spritekind" id="k,CEN!AzC9,@P$r?-D%~"><field name="MEMBER">Player</field></shadow></value></block></value><next><block type="mapplaceonrandomtile" id="ZEXJZ$rYO;O/~oC(d:23"><value name="sprite"><block type="variables_get" id="jDRR@HvJ~rV_5}-o#Kv+"><field name="VAR" id="!]odfftN?0W36{33Ve9g">mySprite</field></block></value><value name="tile"><shadow type="tileset_tile_picker" id=")d~AJjHo3BVu2)eqnGc("><field name="tile">sprites.dungeon.collectibleInsignia</field></shadow></value><next><block type="camerafollow" id="}2E1PJ?C;#Rn26+F]c[["><value name="sprite"><block type="variables_get" id="}-+k@#q~x;xfb1R}L;l!"><field name="VAR" id="!]odfftN?0W36{33Ve9g">mySprite</field></block></value><next><block type="game_control_sprite" id="|j!?@Yc_!#5[WwHCGBLm"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="2" _input_init="true"></mutation><value name="sprite"><block type="variables_get" id="f-D8S)PNkk;D!th6)nA5"><field name="VAR" id="!]odfftN?0W36{33Ve9g">mySprite</field></block></value><value name="vx"><shadow type="spriteSpeedPicker" id="(+A+~~0!b7tizL4!Y.J/"><field name="speed">40</field></shadow></value><value name="vy"><shadow type="spriteSpeedPicker" id="W0==A?bw;a,YKV]s8CEA"><field name="speed">40</field></shadow></value></block></next></block></next></block></next></block></next></block></statement></block><block type="spriteshittile" id="1;5U7-Ltr~L=7na(3}BM" x="430" y="350"><value name="HANDLER_DRAG_PARAM_sprite"><shadow type="argument_reporter_custom" id="{`Rt%0O/`{qC`#se_sQZ"><mutation typename="Sprite"></mutation><field name="VALUE">sprite</field></shadow></value><value name="kind"><shadow type="spritekind" id="%v*3g1O43qctFvQtyWcm"><field name="MEMBER">Player</field></shadow></value><value name="tile"><shadow type="tileset_tile_picker" id="E6NhC(%^.F76k9yMb.[:"><field name="tile">sprites.dungeon.collectibleRedCrystal</field></shadow></value><value name="HANDLER_DRAG_PARAM_location"><shadow type="argument_reporter_custom" id="OI;`L]#dGE}Rd=n9FtqJ"><mutation typename="tiles.Location"></mutation><field name="VALUE">location</field></shadow></value><statement name="HANDLER"><block type="gameSplash" id="0K/qC=^VPR:7LmUMEJJl"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="1" _input_init="true"></mutation><value name="title"><shadow type="text" id="86ovW!662X8UJY1BvSq;"><field name="TEXT">You Died</field></shadow></value><value name="subtitle"><shadow type="text" id="BkESk@B@,OH2uZ4Me?[L"><field name="TEXT">You tried to swim in the lava</field></shadow></value><next><block type="gameOver" id="2LQlUA^MgVL4]Ij~`LpE"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="0" _input_init="true"></mutation><field name="effect">effects.confetti</field><value name="win"><shadow type="toggleWinLose" id="/0I}g8zO8b,4|*-~0_B)"><field name="win">false</field></shadow></value></block></next></block></statement></block><block type="spriteshittile" id="i;5+5/~9FP0!.Nn@eifM" x="218" y="505"><value name="HANDLER_DRAG_PARAM_sprite"><shadow type="argument_reporter_custom" id=",.)V^j@uz2Vn%0TG}XG~"><mutation typename="Sprite"></mutation><field name="VALUE">sprite</field></shadow></value><value name="kind"><shadow type="spritekind" id="M)aM{=%MX-seWnXIiz]q"><field name="MEMBER">Player</field></shadow></value><value name="tile"><shadow type="tileset_tile_picker" id="5QR{*,k!wEiiOq)ECF#2"><field name="tile">sprites.dungeon.doorLockedNorth</field></shadow></value><value name="HANDLER_DRAG_PARAM_location"><shadow type="argument_reporter_custom" id="xS5utdS?y$-U9rVV~6Et"><mutation typename="tiles.Location"></mutation><field name="VALUE">location</field></shadow></value><statement name="HANDLER"><block type="gameOver" id="SZelZ0n?~Gjjyb15$gTX"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="0" _input_init="true"></mutation><field name="effect">effects.confetti</field><value name="win"><shadow type="toggleWinLose" id=";_|`Q5|suIb?$r1/}kS2"><field name="win">true</field></shadow></value></block></statement></block></xml>