finish up game
This commit is contained in:
parent
4fdd4fb660
commit
93542b3359
BIN
assets/impact-sounds/footstep_snow_003.ogg
Normal file
BIN
assets/impact-sounds/footstep_snow_003.ogg
Normal file
Binary file not shown.
BIN
assets/impact-sounds/footstep_wood_003.ogg
Normal file
BIN
assets/impact-sounds/footstep_wood_003.ogg
Normal file
Binary file not shown.
BIN
assets/impact-sounds/impactPunch_heavy_002.ogg
Normal file
BIN
assets/impact-sounds/impactPunch_heavy_002.ogg
Normal file
Binary file not shown.
BIN
assets/kenney-ui/PNG/Red/Default/button_square_depth_flat.png
Normal file
BIN
assets/kenney-ui/PNG/Red/Default/button_square_depth_flat.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 355 B |
BIN
assets/kenney-ui/PNG/Red/Default/button_square_flat.png
Normal file
BIN
assets/kenney-ui/PNG/Red/Default/button_square_flat.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 286 B |
BIN
assets/kenney-ui/PNG/Red/Double/button_square_depth_flat.png
Normal file
BIN
assets/kenney-ui/PNG/Red/Double/button_square_depth_flat.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 652 B |
BIN
assets/kenney-ui/PNG/Red/Double/button_square_flat.png
Normal file
BIN
assets/kenney-ui/PNG/Red/Double/button_square_flat.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 523 B |
BIN
assets/kenney-ui/Sounds/tap-b.ogg
Normal file
BIN
assets/kenney-ui/Sounds/tap-b.ogg
Normal file
Binary file not shown.
@ -1,8 +1,44 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<map version="1.10" tiledversion="1.12.2" orientation="orthogonal" renderorder="right-down" width="30" height="20" tilewidth="64" tileheight="64" infinite="1" nextlayerid="8" nextobjectid="30">
|
<map version="1.10" tiledversion="1.12.2" orientation="orthogonal" renderorder="right-down" width="30" height="20" tilewidth="64" tileheight="64" infinite="1" nextlayerid="8" nextobjectid="38">
|
||||||
<tileset firstgid="1" source="tileset.tsx"/>
|
<tileset firstgid="1" source="tileset.tsx"/>
|
||||||
<layer id="2" name="Ground" width="30" height="20">
|
<layer id="2" name="Ground" width="30" height="20">
|
||||||
<data encoding="csv">
|
<data encoding="csv">
|
||||||
|
<chunk x="48" y="-16" width="16" height="16">
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,91,91,91,91,91,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,91,90,90,90,90,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,91,90,90,90,90,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,91,90,90,90,90,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,91,90,90,90,90,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,91,90,90,90,90
|
||||||
|
</chunk>
|
||||||
|
<chunk x="64" y="-16" width="16" height="16">
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
91,91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
90,91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
90,91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
90,91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
90,91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
90,91,91,91,0,0,0,0,0,0,0,0,0,0,0,0
|
||||||
|
</chunk>
|
||||||
<chunk x="0" y="0" width="16" height="16">
|
<chunk x="0" y="0" width="16" height="16">
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
@ -20,6 +56,96 @@
|
|||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,91,91,91,91,91,91,91,91,91,0,0,0,0
|
0,0,0,91,91,91,91,91,91,91,91,91,0,0,0,0
|
||||||
|
</chunk>
|
||||||
|
<chunk x="16" y="0" width="16" height="16">
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,91,91,91,91,91,91,91,91,0,0,0,0,0,0,0,
|
||||||
|
0,91,90,90,90,90,90,90,91,0,0,0,0,0,0,0,
|
||||||
|
0,91,90,90,90,90,90,90,91,0,0,0,0,0,0,0,
|
||||||
|
0,91,90,90,90,90,90,90,91,0,0,0,0,0,0,0,
|
||||||
|
0,91,90,90,90,90,90,90,91,0,0,0,0,0,0,0,
|
||||||
|
0,91,90,90,90,90,90,90,91,0,0,0,0,0,0,0,
|
||||||
|
0,91,91,91,91,91,91,91,91,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,91,91,91,91,91,91,91,91,0,0,0,0,0,0,0,
|
||||||
|
0,91,90,90,90,90,90,90,91,0,0,0,0,91,91,91,
|
||||||
|
0,91,90,90,90,90,90,90,91,0,0,0,0,91,90,90
|
||||||
|
</chunk>
|
||||||
|
<chunk x="32" y="0" width="16" height="16">
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
91,91,91,91,91,91,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
90,90,90,90,90,91,0,0,0,0,0,0,0,0,0,0
|
||||||
|
</chunk>
|
||||||
|
<chunk x="48" y="0" width="16" height="16">
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,91,90,90,90,90,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,91,90,90,90,90,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,91,91,91,91,91,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||||
|
</chunk>
|
||||||
|
<chunk x="64" y="0" width="16" height="16">
|
||||||
|
90,90,90,91,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
91,91,91,91,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,91,91,91,91,91,91,0,0,0,0,91,91,91,91,91,
|
||||||
|
0,91,90,90,90,90,91,0,0,0,0,91,90,90,90,90,
|
||||||
|
0,91,90,90,90,90,91,91,91,91,91,91,90,90,90,90,
|
||||||
|
0,91,90,90,90,90,90,90,90,90,90,90,90,90,90,90
|
||||||
|
</chunk>
|
||||||
|
<chunk x="80" y="0" width="16" height="16">
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||||
</chunk>
|
</chunk>
|
||||||
<chunk x="0" y="16" width="16" height="16">
|
<chunk x="0" y="16" width="16" height="16">
|
||||||
0,0,0,91,90,90,90,90,90,90,90,91,0,0,0,0,
|
0,0,0,91,90,90,90,90,90,90,90,91,0,0,0,0,
|
||||||
@ -38,6 +164,168 @@
|
|||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||||
|
</chunk>
|
||||||
|
<chunk x="16" y="16" width="16" height="16">
|
||||||
|
0,91,90,90,90,90,90,90,91,0,0,0,0,91,90,90,
|
||||||
|
0,91,90,90,90,90,90,90,91,0,0,0,0,91,90,90,
|
||||||
|
0,91,90,90,90,90,90,90,91,0,0,0,0,91,91,91,
|
||||||
|
0,91,91,91,91,91,91,91,91,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,91,91,91,91,
|
||||||
|
0,91,91,91,91,91,91,91,91,0,0,0,91,90,90,90,
|
||||||
|
0,91,90,90,90,90,90,90,91,0,0,0,91,90,90,90,
|
||||||
|
0,91,90,90,90,90,90,90,91,0,0,0,91,90,90,90,
|
||||||
|
0,91,90,90,90,90,90,90,91,0,0,0,91,90,90,90,
|
||||||
|
0,91,90,90,90,90,90,90,91,0,0,0,91,90,90,90,
|
||||||
|
0,91,90,90,90,90,90,90,91,0,0,0,91,91,91,91,
|
||||||
|
0,91,91,91,91,91,91,91,91,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,91,91,91,91,91,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,91,90,90,90,90,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,91,90,90,90,90
|
||||||
|
</chunk>
|
||||||
|
<chunk x="32" y="16" width="16" height="16">
|
||||||
|
90,90,90,90,90,91,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
90,90,90,90,90,91,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
91,91,91,91,91,91,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
91,91,91,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
90,90,91,91,91,91,91,0,0,0,0,0,0,0,0,0,
|
||||||
|
90,90,91,90,90,90,91,0,0,0,0,0,0,0,0,0,
|
||||||
|
90,90,90,90,90,90,91,0,0,0,0,0,0,0,0,0,
|
||||||
|
90,90,91,90,90,90,91,0,0,0,0,0,0,0,0,0,
|
||||||
|
90,90,91,91,91,91,91,0,0,0,0,0,0,0,0,0,
|
||||||
|
91,91,91,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
91,91,91,91,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
90,90,90,91,91,91,91,91,0,0,0,0,0,0,0,0,
|
||||||
|
90,90,90,91,90,90,90,91,0,0,0,0,0,0,0,0
|
||||||
|
</chunk>
|
||||||
|
<chunk x="64" y="16" width="16" height="16">
|
||||||
|
0,91,90,90,90,90,91,91,91,91,91,91,90,90,90,90,
|
||||||
|
0,91,90,90,90,90,90,0,0,0,0,91,90,90,90,90,
|
||||||
|
0,91,91,91,91,91,91,0,0,0,0,91,91,91,91,91,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||||
|
</chunk>
|
||||||
|
<chunk x="80" y="16" width="16" height="16">
|
||||||
|
91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||||
|
</chunk>
|
||||||
|
<chunk x="16" y="32" width="16" height="16">
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,91,90,90,90,90,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,91,90,90,90,90,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,91,90,90,90,90,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,91,91,91,91,91,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,91,91,91,91,91,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,91,90,90,90,90,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,91,90,90,90,90,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,91,90,90,90,90,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,91,90,90,90,90,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,91,90,90,90,90,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,91,91,91,91,91,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||||
|
</chunk>
|
||||||
|
<chunk x="32" y="32" width="16" height="16">
|
||||||
|
90,90,90,90,90,90,90,91,0,0,0,0,0,0,0,0,
|
||||||
|
90,90,90,91,90,90,90,91,0,0,0,0,0,0,0,0,
|
||||||
|
90,90,90,91,91,91,91,91,0,0,0,0,0,0,0,0,
|
||||||
|
91,91,91,91,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
91,91,91,91,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
90,90,90,91,91,91,91,91,0,0,0,0,0,0,0,0,
|
||||||
|
90,90,90,91,90,90,90,91,0,0,0,0,0,0,0,0,
|
||||||
|
90,90,90,90,90,90,90,91,0,0,0,0,0,0,0,0,
|
||||||
|
90,90,90,91,90,90,90,91,0,0,0,0,0,0,0,0,
|
||||||
|
90,90,90,91,91,91,91,91,0,0,0,0,0,0,0,0,
|
||||||
|
91,91,91,91,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||||
|
</chunk>
|
||||||
|
<chunk x="48" y="32" width="16" height="16">
|
||||||
|
0,0,0,0,0,91,91,91,91,91,91,91,91,91,0,0,
|
||||||
|
0,0,0,0,0,91,90,90,90,90,90,90,90,91,91,91,
|
||||||
|
0,0,0,0,0,91,90,90,90,90,90,90,90,91,90,90,
|
||||||
|
0,0,0,0,0,91,90,90,90,90,90,90,90,90,90,90,
|
||||||
|
0,0,0,0,0,91,90,90,90,90,90,90,90,91,90,90,
|
||||||
|
0,0,0,0,0,91,91,91,90,90,90,90,90,91,91,91,
|
||||||
|
0,0,0,0,0,0,0,91,91,91,91,91,91,91,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,91,91,91,91,91,91,91,91,91,0,0,0,
|
||||||
|
0,0,0,0,91,90,90,90,90,90,90,90,91,0,0,0,
|
||||||
|
0,0,0,0,91,90,90,90,90,90,90,90,91,0,0,0,
|
||||||
|
0,0,0,0,91,90,90,90,90,90,90,90,91,0,0,0,
|
||||||
|
0,0,0,0,91,90,90,90,90,90,90,90,91,0,0,0,
|
||||||
|
0,0,0,0,91,91,91,90,90,90,91,91,91,0,0,0,
|
||||||
|
0,0,0,0,0,0,91,91,91,91,91,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||||
|
</chunk>
|
||||||
|
<chunk x="64" y="32" width="16" height="16">
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
91,91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
90,91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
90,91,0,0,0,0,0,0,0,0,0,0,91,91,91,91,
|
||||||
|
90,91,0,0,0,0,0,0,0,0,91,91,91,90,90,90,
|
||||||
|
91,91,0,0,0,0,0,0,0,0,91,90,90,90,90,90,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,91,90,90,90,90,90,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,91,90,90,90,90,90,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,91,90,90,90,90,90,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,91,90,90,90,90,90,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,91,90,90,90,90,90,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,91,90,91,91,90,90,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,91,90,91,91,91,91,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,91,91,91,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||||
|
</chunk>
|
||||||
|
<chunk x="80" y="32" width="16" height="16">
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
91,91,91,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
90,90,91,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
90,90,91,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
90,90,91,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
90,90,91,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
90,90,91,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
90,90,91,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
91,91,91,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||||
</chunk>
|
</chunk>
|
||||||
</data>
|
</data>
|
||||||
</layer>
|
</layer>
|
||||||
@ -54,12 +342,12 @@
|
|||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,98,98,98,98,98,
|
0,0,0,0,0,0,0,0,0,0,0,99,99,99,99,99,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,98,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,86,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,98,0,72,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,86,0,72,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,98,7,7,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,86,7,7,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,98,0,7,7,0,
|
0,0,0,0,0,0,0,0,0,0,0,86,0,7,7,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,98,0,0,7,7
|
0,0,0,0,0,0,0,0,0,0,0,86,0,0,7,7
|
||||||
</chunk>
|
</chunk>
|
||||||
<chunk x="64" y="-16" width="16" height="16">
|
<chunk x="64" y="-16" width="16" height="16">
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
@ -72,12 +360,12 @@
|
|||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
98,98,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
99,99,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,98,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,86,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,98,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,86,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,98,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,86,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,98,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,86,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,98,98,98,0,0,0,0,0,0,0,0,0,0,0,0
|
0,86,86,86,0,0,0,0,0,0,0,0,0,0,0,0
|
||||||
</chunk>
|
</chunk>
|
||||||
<chunk x="0" y="0" width="16" height="16">
|
<chunk x="0" y="0" width="16" height="16">
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
@ -112,8 +400,8 @@
|
|||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,99,99,99,99,99,99,99,99,0,0,0,0,0,0,0,
|
0,99,99,99,99,99,99,99,99,0,0,0,0,0,0,0,
|
||||||
0,86,0,0,0,0,0,0,86,0,0,0,0,98,98,98,
|
0,86,0,0,0,0,0,0,86,0,0,0,0,99,99,99,
|
||||||
0,86,0,0,0,7,0,40,86,0,0,0,0,98,0,0
|
0,86,0,0,0,7,0,40,86,0,0,0,0,86,0,0
|
||||||
</chunk>
|
</chunk>
|
||||||
<chunk x="32" y="0" width="16" height="16">
|
<chunk x="32" y="0" width="16" height="16">
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
@ -130,13 +418,13 @@
|
|||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,98,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,98,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,98,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,98,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,98,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,98,0,0,
|
||||||
98,98,98,98,98,98,0,0,0,0,0,0,0,98,0,0,
|
99,99,99,99,99,99,0,0,0,0,0,0,0,98,0,0,
|
||||||
0,0,0,40,0,98,0,0,0,0,0,0,0,98,0,0
|
0,0,0,40,0,86,0,0,0,0,0,0,0,98,0,0
|
||||||
</chunk>
|
</chunk>
|
||||||
<chunk x="48" y="0" width="16" height="16">
|
<chunk x="48" y="0" width="16" height="16">
|
||||||
0,0,0,0,0,0,0,0,0,0,0,98,0,0,0,7,
|
0,0,0,0,0,0,0,0,0,0,0,86,0,0,0,7,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,98,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,86,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,98,98,98,98,98,
|
0,0,0,0,0,0,0,0,0,0,0,86,86,86,86,86,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
@ -152,9 +440,9 @@
|
|||||||
0,0,7,7,0,98,98,98,0,0,0,0,0,0,0,0
|
0,0,7,7,0,98,98,98,0,0,0,0,0,0,0,0
|
||||||
</chunk>
|
</chunk>
|
||||||
<chunk x="64" y="0" width="16" height="16">
|
<chunk x="64" y="0" width="16" height="16">
|
||||||
7,0,40,98,0,0,0,0,0,0,0,0,0,0,0,0,
|
7,0,40,86,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,98,98,0,0,0,0,0,0,0,0,0,0,0,0,
|
86,86,86,86,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
98,98,98,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
86,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
@ -164,10 +452,10 @@
|
|||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,98,98,98,98,98,98,0,0,0,0,98,98,98,98,98,
|
0,99,99,99,99,99,99,0,0,0,0,99,99,99,99,99,
|
||||||
0,98,0,0,0,0,98,0,0,0,0,98,0,0,0,0,
|
0,86,0,0,0,0,86,0,0,0,0,86,0,0,0,0,
|
||||||
0,98,0,7,0,0,98,98,98,98,98,98,0,0,40,0,
|
0,86,0,7,0,0,86,86,86,86,86,86,0,0,40,0,
|
||||||
0,98,0,7,72,0,0,0,0,0,0,0,0,0,40,0
|
0,86,0,7,72,0,0,0,0,0,0,0,0,0,40,0
|
||||||
</chunk>
|
</chunk>
|
||||||
<chunk x="80" y="0" width="16" height="16">
|
<chunk x="80" y="0" width="16" height="16">
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
@ -182,10 +470,10 @@
|
|||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
98,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
99,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
98,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
86,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
98,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
86,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
98,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
86,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||||
</chunk>
|
</chunk>
|
||||||
<chunk x="0" y="16" width="16" height="16">
|
<chunk x="0" y="16" width="16" height="16">
|
||||||
0,0,0,86,72,0,0,7,0,0,40,86,0,0,0,0,
|
0,0,0,86,72,0,0,7,0,0,40,86,0,0,0,0,
|
||||||
@ -206,40 +494,40 @@
|
|||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||||
</chunk>
|
</chunk>
|
||||||
<chunk x="16" y="16" width="16" height="16">
|
<chunk x="16" y="16" width="16" height="16">
|
||||||
0,86,72,0,0,0,0,0,86,0,0,0,0,98,72,0,
|
0,86,72,0,0,0,0,0,86,0,0,0,0,86,72,0,
|
||||||
0,86,0,0,0,8,0,40,86,0,0,0,0,98,0,0,
|
0,86,0,0,0,8,0,40,86,0,0,0,0,86,0,0,
|
||||||
0,86,0,0,0,0,0,0,86,0,0,0,0,98,98,98,
|
0,86,0,0,0,0,0,0,86,0,0,0,0,86,86,86,
|
||||||
0,86,86,86,86,86,86,86,86,0,0,0,0,0,0,0,
|
0,86,86,86,86,86,86,86,86,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,98,98,98,98,
|
0,0,0,0,0,0,0,0,0,0,0,0,99,99,99,99,
|
||||||
0,99,99,99,99,99,99,99,99,0,0,0,98,0,0,0,
|
0,99,99,99,99,99,99,99,99,0,0,0,86,0,0,0,
|
||||||
0,86,0,0,0,0,0,0,86,0,0,0,98,0,0,0,
|
0,86,0,0,0,0,0,0,86,0,0,0,86,0,0,0,
|
||||||
0,86,0,0,0,7,0,40,86,0,0,0,98,0,72,0,
|
0,86,0,0,0,7,0,40,86,0,0,0,86,0,72,0,
|
||||||
0,86,72,0,0,0,0,0,86,0,0,0,98,0,0,0,
|
0,86,72,0,0,0,0,0,86,0,0,0,86,0,0,0,
|
||||||
0,86,0,0,0,8,0,41,86,0,0,0,98,0,0,0,
|
0,86,0,0,0,8,0,41,86,0,0,0,86,0,0,0,
|
||||||
0,86,0,0,0,0,0,0,86,0,0,0,98,98,98,98,
|
0,86,0,0,0,0,0,0,86,0,0,0,86,86,86,86,
|
||||||
0,86,86,86,86,86,86,86,86,0,0,0,0,0,0,0,
|
0,86,86,86,86,86,86,86,86,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,98,98,98,98,98,
|
0,0,0,0,0,0,0,0,0,0,0,99,99,99,99,99,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,98,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,86,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,98,0,0,0,0
|
0,0,0,0,0,0,0,0,0,0,0,86,0,0,0,0
|
||||||
</chunk>
|
</chunk>
|
||||||
<chunk x="32" y="16" width="16" height="16">
|
<chunk x="32" y="16" width="16" height="16">
|
||||||
0,0,7,7,40,98,0,0,0,0,0,0,0,98,0,0,
|
0,0,7,7,40,86,0,0,0,0,0,0,0,98,0,0,
|
||||||
0,0,0,0,0,98,0,0,0,0,0,0,0,98,0,0,
|
0,0,0,0,0,86,0,0,0,0,0,0,0,98,0,0,
|
||||||
98,98,98,98,98,98,0,0,0,0,0,0,0,98,98,98,
|
86,86,86,86,86,86,0,0,0,0,0,0,0,98,98,98,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
98,98,98,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
99,99,99,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,98,98,98,98,98,0,0,0,0,0,0,0,0,0,
|
0,0,86,99,99,99,99,0,0,0,0,0,0,0,0,0,
|
||||||
7,0,98,0,0,0,98,0,0,0,0,0,0,0,0,0,
|
7,0,86,0,0,0,86,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,12,0,40,0,98,0,0,0,0,0,0,0,0,0,
|
0,0,12,0,40,0,86,0,0,0,0,0,0,0,0,0,
|
||||||
7,0,98,0,0,0,98,0,0,0,0,0,0,0,0,0,
|
7,0,86,0,0,0,86,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,98,98,98,98,98,0,0,0,0,0,0,0,0,0,
|
0,0,86,86,86,86,86,0,0,0,0,0,0,0,0,0,
|
||||||
98,98,98,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
86,86,86,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
98,98,98,98,0,0,0,0,0,0,0,0,0,0,0,0,
|
99,99,99,99,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,98,98,98,98,98,0,0,0,0,0,0,0,0,
|
0,0,0,86,99,99,99,99,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,98,0,0,0,98,0,0,0,0,0,0,0,0
|
0,0,0,86,0,0,0,86,0,0,0,0,0,0,0,0
|
||||||
</chunk>
|
</chunk>
|
||||||
<chunk x="48" y="16" width="16" height="16">
|
<chunk x="48" y="16" width="16" height="16">
|
||||||
0,72,0,7,7,0,40,98,0,0,0,0,0,0,0,0,
|
0,72,0,7,7,0,40,98,0,0,0,0,0,0,0,0,
|
||||||
@ -260,9 +548,9 @@
|
|||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||||
</chunk>
|
</chunk>
|
||||||
<chunk x="64" y="16" width="16" height="16">
|
<chunk x="64" y="16" width="16" height="16">
|
||||||
0,98,0,7,0,0,98,98,98,98,98,98,0,0,40,0,
|
0,86,0,7,0,0,86,86,86,86,86,86,0,0,40,0,
|
||||||
0,98,0,0,0,0,98,0,0,0,0,98,0,0,0,0,
|
0,86,0,0,0,0,86,0,0,0,0,86,0,0,0,0,
|
||||||
0,98,98,98,98,98,98,0,0,0,0,98,98,98,98,98,
|
0,86,86,86,86,86,86,0,0,0,0,86,86,86,86,86,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
@ -278,9 +566,9 @@
|
|||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||||
</chunk>
|
</chunk>
|
||||||
<chunk x="80" y="16" width="16" height="16">
|
<chunk x="80" y="16" width="16" height="16">
|
||||||
98,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
86,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
98,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
86,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
98,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
86,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
@ -314,44 +602,44 @@
|
|||||||
0,98,98,98,98,0,0,0,0,0,0,0,0,0,0,0
|
0,98,98,98,98,0,0,0,0,0,0,0,0,0,0,0
|
||||||
</chunk>
|
</chunk>
|
||||||
<chunk x="16" y="32" width="16" height="16">
|
<chunk x="16" y="32" width="16" height="16">
|
||||||
0,0,0,0,0,0,0,0,0,0,0,98,0,7,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,86,0,7,0,72,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,98,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,86,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,98,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,86,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,98,98,98,98,98,
|
0,0,0,0,0,0,0,0,0,0,0,86,86,86,86,86,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,98,98,98,98,98,
|
0,0,0,0,0,0,0,0,0,0,0,99,99,99,99,99,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,98,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,86,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,98,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,86,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,98,0,7,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,86,0,7,0,72,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,98,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,86,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,98,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,86,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,98,98,98,98,98,
|
0,0,0,0,0,0,0,0,0,0,0,86,86,86,86,86,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||||
</chunk>
|
</chunk>
|
||||||
<chunk x="32" y="32" width="16" height="16">
|
<chunk x="32" y="32" width="16" height="16">
|
||||||
0,8,0,25,0,40,0,98,0,0,0,0,0,0,0,0,
|
0,8,0,25,0,40,0,86,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,98,0,0,0,98,0,0,0,0,0,0,0,0,
|
0,0,0,86,0,0,0,86,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,98,98,98,98,98,0,0,0,0,0,0,0,0,
|
0,0,0,86,86,86,86,86,0,0,0,0,0,0,0,0,
|
||||||
98,98,98,98,0,0,0,0,0,0,0,0,0,0,0,0,
|
86,86,86,86,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
98,98,98,98,0,0,0,0,0,0,0,0,0,0,0,0,
|
99,99,99,99,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,98,98,98,98,98,0,0,0,0,0,0,0,0,
|
0,0,0,86,99,99,99,99,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,98,0,0,0,98,0,0,0,0,0,0,0,0,
|
0,0,0,86,0,0,0,86,0,0,0,0,0,0,0,0,
|
||||||
0,8,0,12,0,42,0,98,0,0,0,0,0,0,0,0,
|
0,8,0,12,0,42,0,86,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,98,0,0,0,98,0,0,0,0,0,0,0,0,
|
0,0,0,86,0,0,0,86,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,98,98,98,98,98,0,0,0,0,0,0,0,0,
|
0,0,0,86,86,86,86,86,0,0,0,0,0,0,0,0,
|
||||||
98,98,98,98,0,0,0,0,0,0,0,0,0,0,0,0,
|
86,86,86,86,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||||
</chunk>
|
</chunk>
|
||||||
<chunk x="48" y="32" width="16" height="16">
|
<chunk x="48" y="32" width="16" height="16">
|
||||||
0,0,0,0,0,86,86,86,86,86,86,86,86,86,0,0,
|
0,0,0,0,0,99,99,99,99,99,99,99,99,99,0,0,
|
||||||
0,0,0,0,0,86,0,0,0,0,0,0,0,86,86,86,
|
0,0,0,0,0,86,0,0,0,0,0,0,0,86,99,99,
|
||||||
0,0,0,0,0,86,0,0,0,0,0,7,0,86,0,0,
|
0,0,0,0,0,86,0,0,0,0,0,7,0,86,0,0,
|
||||||
0,0,0,0,0,86,0,0,0,72,0,0,0,38,0,41,
|
0,0,0,0,0,86,0,0,0,72,0,0,0,38,0,41,
|
||||||
0,0,0,0,0,86,25,8,0,0,0,7,0,86,0,0,
|
0,0,0,0,0,86,25,8,0,0,0,7,0,86,0,0,
|
||||||
@ -369,10 +657,10 @@
|
|||||||
</chunk>
|
</chunk>
|
||||||
<chunk x="64" y="32" width="16" height="16">
|
<chunk x="64" y="32" width="16" height="16">
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
86,86,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
99,99,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,86,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,86,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,86,0,0,0,0,0,0,0,0,0,0,86,86,86,86,
|
0,86,0,0,0,0,0,0,0,0,0,0,99,99,99,99,
|
||||||
0,86,0,0,0,0,0,0,0,0,86,86,86,0,0,0,
|
0,86,0,0,0,0,0,0,0,0,99,99,86,0,0,0,
|
||||||
86,86,0,0,0,0,0,0,0,0,86,51,8,0,0,0,
|
86,86,0,0,0,0,0,0,0,0,86,51,8,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,86,51,8,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,86,51,8,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,86,0,0,0,72,0,
|
0,0,0,0,0,0,0,0,0,0,86,0,0,0,72,0,
|
||||||
@ -389,8 +677,8 @@
|
|||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
86,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
99,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
86,86,86,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
86,99,99,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
9,25,86,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
9,25,86,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
9,25,86,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
9,25,86,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
9,25,86,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
9,25,86,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
@ -405,7 +693,7 @@
|
|||||||
</chunk>
|
</chunk>
|
||||||
</data>
|
</data>
|
||||||
</layer>
|
</layer>
|
||||||
<objectgroup id="7" name="Level bounds" visible="0">
|
<objectgroup id="7" name="Level bounds">
|
||||||
<object id="15" x="138.333" y="906.334" width="683" height="303.334">
|
<object id="15" x="138.333" y="906.334" width="683" height="303.334">
|
||||||
<properties>
|
<properties>
|
||||||
<property name="level" type="int" value="1"/>
|
<property name="level" type="int" value="1"/>
|
||||||
@ -421,19 +709,54 @@
|
|||||||
<property name="level" type="int" value="2"/>
|
<property name="level" type="int" value="2"/>
|
||||||
</properties>
|
</properties>
|
||||||
</object>
|
</object>
|
||||||
<object id="25" x="1023.83" y="1357.67" width="648.333" height="562.001">
|
<object id="25" x="1023.83" y="1357.67" width="596.333" height="522.001">
|
||||||
<properties>
|
<properties>
|
||||||
<property name="level" type="int" value="4"/>
|
<property name="level" type="int" value="4"/>
|
||||||
</properties>
|
</properties>
|
||||||
</object>
|
</object>
|
||||||
<object id="26" x="1823.83" y="800.999" width="648.333" height="562.001">
|
<object id="26" x="1823.83" y="800.999" width="632.333" height="462.001">
|
||||||
<properties>
|
<properties>
|
||||||
<property name="level" type="int" value="5"/>
|
<property name="level" type="int" value="5"/>
|
||||||
</properties>
|
</properties>
|
||||||
</object>
|
</object>
|
||||||
<object id="29" x="4531.23" y="2037.03" width="1108.7" height="982.668">
|
<object id="29" x="4675.23" y="2209.03" width="700.697" height="792.668">
|
||||||
<properties>
|
<properties>
|
||||||
<property name="level" type="int" value="0"/>
|
<property name="level" type="int" value="13"/>
|
||||||
|
</properties>
|
||||||
|
</object>
|
||||||
|
<object id="30" x="1802.83" y="1353.67" width="679.333" height="428.334">
|
||||||
|
<properties>
|
||||||
|
<property name="level" type="int" value="6"/>
|
||||||
|
</properties>
|
||||||
|
</object>
|
||||||
|
<object id="31" x="1742.83" y="1874" width="790.333" height="411.001">
|
||||||
|
<properties>
|
||||||
|
<property name="level" type="int" value="7"/>
|
||||||
|
</properties>
|
||||||
|
</object>
|
||||||
|
<object id="32" x="1740.83" y="2378" width="801.333" height="420.001">
|
||||||
|
<properties>
|
||||||
|
<property name="level" type="int" value="8"/>
|
||||||
|
</properties>
|
||||||
|
</object>
|
||||||
|
<object id="33" x="4072.08" y="646.969" width="1222.51" height="672.728">
|
||||||
|
<properties>
|
||||||
|
<property name="level" type="int" value="9"/>
|
||||||
|
</properties>
|
||||||
|
</object>
|
||||||
|
<object id="34" x="3643.29" y="-487.879" width="798.268" height="775.758">
|
||||||
|
<properties>
|
||||||
|
<property name="level" type="int" value="10"/>
|
||||||
|
</properties>
|
||||||
|
</object>
|
||||||
|
<object id="35" x="3339.05" y="2572.48" width="550.268" height="426.425">
|
||||||
|
<properties>
|
||||||
|
<property name="level" type="int" value="12"/>
|
||||||
|
</properties>
|
||||||
|
</object>
|
||||||
|
<object id="36" x="3411.53" y="2069.12" width="788.937" height="408.425">
|
||||||
|
<properties>
|
||||||
|
<property name="level" type="int" value="11"/>
|
||||||
</properties>
|
</properties>
|
||||||
</object>
|
</object>
|
||||||
</objectgroup>
|
</objectgroup>
|
||||||
|
|||||||
@ -149,6 +149,8 @@ fn buildProject(ctx: Context, target: Build.ResolvedTarget, optimize: std.builti
|
|||||||
"tiled/map.tmx",
|
"tiled/map.tmx",
|
||||||
"tiled/tileset.tsx",
|
"tiled/tileset.tsx",
|
||||||
"impact-sounds/footstep_concrete_000.ogg",
|
"impact-sounds/footstep_concrete_000.ogg",
|
||||||
|
"impact-sounds/footstep_wood_003.ogg",
|
||||||
|
"impact-sounds/impactPunch_heavy_002.ogg",
|
||||||
"kenney-ui/PNG/Red/Double/button_square_depth_flat.png",
|
"kenney-ui/PNG/Red/Double/button_square_depth_flat.png",
|
||||||
"kenney-ui/PNG/Red/Default/button_square_depth_flat.png",
|
"kenney-ui/PNG/Red/Default/button_square_depth_flat.png",
|
||||||
"kenney-ui/PNG/Red/Double/button_square_flat.png",
|
"kenney-ui/PNG/Red/Double/button_square_flat.png",
|
||||||
@ -278,8 +280,9 @@ fn buildProject(ctx: Context, target: Build.ResolvedTarget, optimize: std.builti
|
|||||||
// needs to be linked in a separate build step with the Emscripten linker
|
// needs to be linked in a separate build step with the Emscripten linker
|
||||||
const main_lib = b.addLibrary(.{
|
const main_lib = b.addLibrary(.{
|
||||||
.name = "index",
|
.name = "index",
|
||||||
.root_module = exe_mod
|
.root_module = exe_mod,
|
||||||
});
|
});
|
||||||
|
exe_mod.link_libc = true;
|
||||||
|
|
||||||
const dep_emsdk = dep_sokol.builder.dependency("emsdk", .{});
|
const dep_emsdk = dep_sokol.builder.dependency("emsdk", .{});
|
||||||
|
|
||||||
|
|||||||
@ -8,8 +8,8 @@
|
|||||||
.hash = "sokol-0.1.0-pb1HK0kUQABqwuelY7BmmQmAm-jLBZKJ7uyoxkdS49Ib",
|
.hash = "sokol-0.1.0-pb1HK0kUQABqwuelY7BmmQmAm-jLBZKJ7uyoxkdS49Ib",
|
||||||
},
|
},
|
||||||
.cimgui = .{
|
.cimgui = .{
|
||||||
.url = "git+https://github.com/floooh/dcimgui.git#ef68bcf1ea0a8218f4a2f24fb9414515ecbf5af4",
|
.url = "git+https://github.com/floooh/dcimgui.git#461f457600a70a19001c735a513a2bec4c7caae7",
|
||||||
.hash = "cimgui-0.1.0-44ClkVBEnABUEg0-NuUgCcvqhRLr9BCUWHFbuVYt9Nuv",
|
.hash = "cimgui-0.1.0-44ClkVBEnAA-LAAR9o0cUrN7CsKHR5hsMj-Byh7sFJLK",
|
||||||
.lazy = true
|
.lazy = true
|
||||||
},
|
},
|
||||||
.stb = .{
|
.stb = .{
|
||||||
|
|||||||
66
src/app.zig
66
src/app.zig
@ -77,6 +77,20 @@ const Point = struct {
|
|||||||
pub fn eql(lhs: Point, rhs: Point) bool {
|
pub fn eql(lhs: Point, rhs: Point) bool {
|
||||||
return lhs.x == rhs.x and lhs.y == rhs.y;
|
return lhs.x == rhs.x and lhs.y == rhs.y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn toDirection(self: Point) ?Direction {
|
||||||
|
if (self.x < 0) {
|
||||||
|
return .left;
|
||||||
|
} else if (self.x > 0) {
|
||||||
|
return .right;
|
||||||
|
} else if (self.y > 0) {
|
||||||
|
return .down;
|
||||||
|
} else if (self.y < 0) {
|
||||||
|
return .up;
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const Entity = struct {
|
const Entity = struct {
|
||||||
@ -84,6 +98,7 @@ const Entity = struct {
|
|||||||
|
|
||||||
visual_pos: Vec2 = .init(0, 0),
|
visual_pos: Vec2 = .init(0, 0),
|
||||||
visual_layer: Layer,
|
visual_layer: Layer,
|
||||||
|
|
||||||
sprite: ?Gfx.Sprite.Id = null,
|
sprite: ?Gfx.Sprite.Id = null,
|
||||||
player_direction: Direction = .down,
|
player_direction: Direction = .down,
|
||||||
player_frame_index: u32 = 0,
|
player_frame_index: u32 = 0,
|
||||||
@ -255,6 +270,7 @@ const World = struct {
|
|||||||
const TickContext = struct {
|
const TickContext = struct {
|
||||||
world: *World,
|
world: *World,
|
||||||
undo_frame: UndoFrame = .empty,
|
undo_frame: UndoFrame = .empty,
|
||||||
|
box_fell: bool = false,
|
||||||
|
|
||||||
fn moveEntity(self: *TickContext, id: Entity.Id, dir: Point) bool {
|
fn moveEntity(self: *TickContext, id: Entity.Id, dir: Point) bool {
|
||||||
if (dir.x == 0 and dir.y == 0) {
|
if (dir.x == 0 and dir.y == 0) {
|
||||||
@ -275,6 +291,7 @@ const TickContext = struct {
|
|||||||
if (other.type == .box_hole) {
|
if (other.type == .box_hole) {
|
||||||
if (!self.world.hasBoxInHole(other_id)) {
|
if (!self.world.hasBoxInHole(other_id)) {
|
||||||
if (this.type == .box and box_hole_id == Entity.Id.nil) {
|
if (this.type == .box and box_hole_id == Entity.Id.nil) {
|
||||||
|
self.box_fell = true;
|
||||||
box_hole_id = other_id;
|
box_hole_id = other_id;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
@ -304,15 +321,7 @@ const TickContext = struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.type == .player) {
|
if (this.type == .player) {
|
||||||
if (dir.x < 0) {
|
this.player_direction = dir.toDirection().?;
|
||||||
this.player_direction = .left;
|
|
||||||
} else if (dir.x > 0) {
|
|
||||||
this.player_direction = .right;
|
|
||||||
} else if (dir.y > 0) {
|
|
||||||
this.player_direction = .down;
|
|
||||||
} else if (dir.y < 0) {
|
|
||||||
this.player_direction = .up;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.pos = next_pos;
|
this.pos = next_pos;
|
||||||
@ -352,7 +361,8 @@ button_down_sprite: Gfx.Sprite.Id,
|
|||||||
box_sprites_by_color: std.EnumArray(BoxColor, BoxSprites),
|
box_sprites_by_color: std.EnumArray(BoxColor, BoxSprites),
|
||||||
|
|
||||||
footstep_buffer: Audio.BufferId,
|
footstep_buffer: Audio.BufferId,
|
||||||
footstep_sound: Audio.SoundId = .nil,
|
hit_wall_buffer: Audio.BufferId,
|
||||||
|
box_fall_buffer: Audio.BufferId,
|
||||||
|
|
||||||
sfx_bus: Audio.BusId,
|
sfx_bus: Audio.BusId,
|
||||||
ui_bus: Audio.BusId,
|
ui_bus: Audio.BusId,
|
||||||
@ -480,6 +490,12 @@ pub fn init(self: *App, plt: Platform.Init) !?u8 {
|
|||||||
.vorbis = plt.assets.readFile("kenney-ui/Sounds/tap-b.ogg")
|
.vorbis = plt.assets.readFile("kenney-ui/Sounds/tap-b.ogg")
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
|
.hit_wall_buffer = Audio.addBuffer(.{
|
||||||
|
.vorbis = plt.assets.readFile("impact-sounds/footstep_wood_003.ogg")
|
||||||
|
}),
|
||||||
|
.box_fall_buffer = Audio.addBuffer(.{
|
||||||
|
.vorbis = plt.assets.readFile("impact-sounds/impactPunch_heavy_002.ogg")
|
||||||
|
}),
|
||||||
.level_order = &.{},
|
.level_order = &.{},
|
||||||
|
|
||||||
.world = undefined,
|
.world = undefined,
|
||||||
@ -813,12 +829,18 @@ pub fn frame(self: *App, plt: *Platform.Frame) !void {
|
|||||||
interpolate_pos = true;
|
interpolate_pos = true;
|
||||||
|
|
||||||
const prev_player_direction = entity.player_direction;
|
const prev_player_direction = entity.player_direction;
|
||||||
|
if (input.move_dir.x != 0 or input.move_dir.y != 0) {
|
||||||
if (tick_context.moveEntity(entity_id, input.move_dir)) {
|
if (tick_context.moveEntity(entity_id, input.move_dir)) {
|
||||||
if (entity.player_direction != prev_player_direction) {
|
if (entity.player_direction != prev_player_direction) {
|
||||||
entity.player_frame_index = 0;
|
entity.player_frame_index = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
self.footstep_sound = Audio.play(self.footstep_buffer, .{ .bus = self.sfx_bus });
|
_ = Audio.play(self.footstep_buffer, .{ .bus = self.sfx_bus });
|
||||||
|
} else {
|
||||||
|
_ = Audio.play(self.hit_wall_buffer, .{ .bus = self.sfx_bus });
|
||||||
|
entity.visual_pos = entity.visual_pos.add(Vec2.initFromInt(i32, input.move_dir.x, input.move_dir.y).multiplyScalar(0.1));
|
||||||
|
entity.player_direction = input.move_dir.toDirection().?;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (entity.type == .box) {
|
} else if (entity.type == .box) {
|
||||||
@ -947,20 +969,32 @@ pub fn frame(self: *App, plt: *Platform.Frame) !void {
|
|||||||
self.menu_state = null;
|
self.menu_state = null;
|
||||||
}
|
}
|
||||||
} else if (menu_state == .level_select) {
|
} else if (menu_state == .level_select) {
|
||||||
ui_frame.padding.addHorizontal(30);
|
var layout = UI.GridLayout{
|
||||||
ui_frame.padding.addVertical(30);
|
.ui = &ui,
|
||||||
|
.columns = 8,
|
||||||
var layout = UI.VerticalLayout{ .ui = &ui, .gap = 30 };
|
.gap = 100
|
||||||
|
};
|
||||||
|
|
||||||
for (0..self.levels.items.len) |i| {
|
for (0..self.levels.items.len) |i| {
|
||||||
const label = try std.fmt.allocPrint(plt.frame, "{}", .{i+1});
|
const label = try std.fmt.allocPrint(plt.frame, "{}", .{i+1});
|
||||||
|
|
||||||
if (layout.textButton(label)) {
|
const button_rect = layout.next();
|
||||||
|
if (self.current_level == i) {
|
||||||
|
ui.drawTextButton(button_rect, label, .{
|
||||||
|
.sprite = self.button_down_sprite,
|
||||||
|
.sprite_color = .rgb(20, 20, 20),
|
||||||
|
.text_color = .rgb(200, 200, 200)
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
if (ui.textButton(button_rect, label)) {
|
||||||
self.menu_state = null;
|
self.menu_state = null;
|
||||||
|
self.current_level = @intCast(i);
|
||||||
self.setWorldByLevel(i);
|
self.setWorldByLevel(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
if (plt.input.isKeyPressed(.ESCAPE)) {
|
if (plt.input.isKeyPressed(.ESCAPE)) {
|
||||||
self.menu_state = .main;
|
self.menu_state = .main;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13,7 +13,7 @@ pub fn main(init: std.process.Init) void {
|
|||||||
Platform.run(App, .{
|
Platform.run(App, .{
|
||||||
.init = init,
|
.init = init,
|
||||||
|
|
||||||
.window_title = "Gaem",
|
.window_title = "Sokoban",
|
||||||
.width = 800,
|
.width = 800,
|
||||||
.height = 600,
|
.height = 600,
|
||||||
});
|
});
|
||||||
|
|||||||
@ -188,7 +188,8 @@ fn PlatformType(App: type) type {
|
|||||||
const now = Io.Timestamp.now(self.io, .awake);
|
const now = Io.Timestamp.now(self.io, .awake);
|
||||||
const time_to_first_frame = self.started_at.durationTo(now);
|
const time_to_first_frame = self.started_at.durationTo(now);
|
||||||
if (time_to_first_frame.nanoseconds > 100 * std.time.ns_per_ms) {
|
if (time_to_first_frame.nanoseconds > 100 * std.time.ns_per_ms) {
|
||||||
log.warn("Time to first frame is long, {f}", .{time_to_first_frame});
|
// TODO:
|
||||||
|
// log.warn("Time to first frame is long, {f}", .{time_to_first_frame});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
91
src/ui.zig
91
src/ui.zig
@ -97,6 +97,31 @@ pub const VerticalLayout = struct {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const GridLayout = struct {
|
||||||
|
ui: *UI,
|
||||||
|
columns: u32 = 1,
|
||||||
|
gap: f32 = 0,
|
||||||
|
index: u32 = 0,
|
||||||
|
|
||||||
|
pub fn next(self: *GridLayout) Rect {
|
||||||
|
const container = self.ui.top().container;
|
||||||
|
const columns_f32: f32 = @floatFromInt(self.columns);
|
||||||
|
const cell_size = (container.size.x - (self.gap * (columns_f32-1))) / columns_f32;
|
||||||
|
|
||||||
|
const x = self.index % self.columns;
|
||||||
|
const y = @divFloor(self.index, self.columns);
|
||||||
|
|
||||||
|
const result = Rect{
|
||||||
|
.pos = container.pos.add(Vec2.initFromInt(u32, x, y).multiplyScalar(cell_size + self.gap)),
|
||||||
|
.size = .init(cell_size, cell_size)
|
||||||
|
};
|
||||||
|
|
||||||
|
self.index += 1;
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
pub const Sides = struct {
|
pub const Sides = struct {
|
||||||
left: f32,
|
left: f32,
|
||||||
right: f32,
|
right: f32,
|
||||||
@ -387,10 +412,49 @@ fn squishRect(rect: Rect, sx: f32, sy: f32) Rect {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const DrawTextButtonOptions = struct {
|
||||||
|
sprite: Gfx.Sprite.Id,
|
||||||
|
sprite_color: Color = .white,
|
||||||
|
text_color: ?Color = null,
|
||||||
|
text_color_lerp_invert: f32 = 0,
|
||||||
|
text_offset: Vec2 = .zero
|
||||||
|
};
|
||||||
|
|
||||||
|
pub fn drawTextButton(
|
||||||
|
self: *UI,
|
||||||
|
rect: Rect,
|
||||||
|
text: []const u8,
|
||||||
|
opts: DrawTextButtonOptions
|
||||||
|
) void {
|
||||||
|
const frame = self.top();
|
||||||
|
const font = frame.font orelse return;
|
||||||
|
|
||||||
|
NineRect.draw(
|
||||||
|
opts.sprite,
|
||||||
|
rect.pos,
|
||||||
|
rect.size,
|
||||||
|
opts.sprite_color
|
||||||
|
);
|
||||||
|
|
||||||
|
const content_size = rect.size.sub(frame.padding.toVec2());
|
||||||
|
|
||||||
|
const text_color = opts.text_color orelse frame.text_color;
|
||||||
|
|
||||||
|
const text_bounds = self.measureText(text);
|
||||||
|
font.drawText(.{
|
||||||
|
.pos = rect.pos
|
||||||
|
.sub(text_bounds.pos)
|
||||||
|
.add(.init(frame.padding.left, frame.padding.top))
|
||||||
|
.add(content_size.sub(text_bounds.size).multiplyScalar(0.5))
|
||||||
|
.add(opts.text_offset),
|
||||||
|
.text = text,
|
||||||
|
.height = frame.text_height,
|
||||||
|
.color = text_color.lerp_invert(opts.text_color_lerp_invert),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
pub fn textButton(self: *UI, rect: Rect, text: []const u8) bool {
|
pub fn textButton(self: *UI, rect: Rect, text: []const u8) bool {
|
||||||
const frame = self.top();
|
const frame = self.top();
|
||||||
const font = frame.font orelse return false;
|
|
||||||
const text_bounds = self.measureText(text);
|
|
||||||
|
|
||||||
const key = Key.initString(@intFromEnum(frame.key), text);
|
const key = Key.initString(@intFromEnum(frame.key), text);
|
||||||
const button_state = self.buttonLogic(rect, key);
|
const button_state = self.buttonLogic(rect, key);
|
||||||
@ -411,24 +475,11 @@ pub fn textButton(self: *UI, rect: Rect, text: []const u8) bool {
|
|||||||
0.06 * hot_t - 0.1 * active_t,
|
0.06 * hot_t - 0.1 * active_t,
|
||||||
-0.09 * hot_t + 0.16 * active_t,
|
-0.09 * hot_t + 0.16 * active_t,
|
||||||
);
|
);
|
||||||
NineRect.draw(
|
self.drawTextButton(animated_rect, text, .{
|
||||||
sprite,
|
.sprite = sprite,
|
||||||
animated_rect.pos,
|
.sprite_color = Color.white.lerp_invert(-0.2 * hot_t + 0.8 * active_t),
|
||||||
animated_rect.size,
|
.text_color_lerp_invert = hot_t * 0.9 + active_t * 0.1,
|
||||||
Color.white.lerp_invert(-0.2 * hot_t + 0.8 * active_t),
|
.text_offset = .init(0, -5 * hot_t + 15 * active_t)
|
||||||
);
|
|
||||||
|
|
||||||
const content_size = rect.size.sub(frame.padding.toVec2());
|
|
||||||
|
|
||||||
font.drawText(.{
|
|
||||||
.pos = rect.pos
|
|
||||||
.sub(text_bounds.pos)
|
|
||||||
.add(.init(frame.padding.left, frame.padding.top))
|
|
||||||
.add(content_size.sub(text_bounds.size).multiplyScalar(0.5))
|
|
||||||
.add(.init(0, -5 * hot_t + 15 * active_t)),
|
|
||||||
.text = text,
|
|
||||||
.height = frame.text_height,
|
|
||||||
.color = frame.text_color.lerp_invert(hot_t * 0.9 + active_t * 0.1),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const result = button_state == .released;
|
const result = button_state == .released;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user