Compare commits

..

3 Commits

7 changed files with 27 additions and 13 deletions

View File

@ -44,7 +44,7 @@ clean:
# Run executable # Run executable
.PHONY: run .PHONY: run
run: all run: all
$(Q)./$(SOURCE_OUTPUT) $(Q)cd $(BUILD_DIR) && ./$(notdir $(SOURCE_OUTPUT))
.PHONY: print-% .PHONY: print-%
print-% : print-% :

@ -1 +1 @@
Subproject commit a0b32165649edb9f2003546ac48057764b12f128 Subproject commit 7778fb4aa5f1ffd8622b73c1edf22cb9c1096325

View File

@ -2,11 +2,11 @@
| Description | Length | | Description | Length |
| :---------------- | :---------------------------------- | | :---------------- | :---------------------------------- |
| Assets number | int (32 bits) | | Assets number | size_t (64 bits) |
| ... | | | ... | |
| Asset name | const char * (variable length) | | Asset name | const char * (variable length) |
| Asset start index | int (32 bits) | | Asset start index | size_t (64 bits) |
| Asset end index | int (32 bits) | | Asset end index | size_t (64 bits) |
| ... | | | ... | |
| Asset data | depend on assets content and number | | Asset data | depend on assets content and number |
@ -14,3 +14,11 @@
Convert RGBA to RGB with #FF00FF as the transparent color. Convert RGBA to RGB with #FF00FF as the transparent color.
If alpha null then the color of the pixel will be replaced with this. If alpha null then the color of the pixel will be replaced with this.
### Image asset data structure
| Description | Length |
| :---------------- | :---------------------------------- |
| Image width | size_t (64 bits) |
| Image height | size_t (64 bits) |
| Image data | depend on image content |

View File

@ -116,7 +116,7 @@
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 0,

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<map version="1.10" tiledversion="1.12.1" orientation="orthogonal" renderorder="left-up" width="32" height="24" tilewidth="16" tileheight="16" infinite="0" nextlayerid="13" nextobjectid="12"> <map version="1.10" tiledversion="1.12.1" orientation="orthogonal" renderorder="left-up" width="32" height="24" tilewidth="16" tileheight="16" infinite="0" nextlayerid="13" nextobjectid="12">
<editorsettings> <editorsettings>
<export target="dungeon_entry_test.json" format="custom"/> <export target="dungeon_entry.json" format="custom"/>
</editorsettings> </editorsettings>
<tileset firstgid="1" source="../tileset/tileset.tsx"/> <tileset firstgid="1" source="../tileset/tileset.tsx"/>
<tileset firstgid="2647" source="hiitboxes.tsx"/> <tileset firstgid="2647" source="hiitboxes.tsx"/>
@ -26,8 +26,17 @@
</data> </data>
</layer> </layer>
<layer id="12" name="HitBoxes" width="32" height="24"> <layer id="12" name="HitBoxes" width="32" height="24">
<properties>
<property name="2" type="list">
<item value="room_1"/>
<item type="list">
<item type="int" value="15"/>
<item type="int" value="22"/>
</item>
</property>
</properties>
<data encoding="base64" compression="zlib"> <data encoding="base64" compression="zlib">
eJwL52JgCB/Fo3gUj+JRjBNHYMHEyFHLblLlqekGcv1GDTeQawYt/D8QdpOaDmhlN660QKs0P4pH8SimPQYATccjMQ== eJwL52JgCB/Fo3gUj+IhhiOhmB52RWDBxMhRy25S5anpBnL9Rg03kGsGLfw/EHaTmg5oZTeutECrND+KR/Eopj0GAGrPIzU=
</data> </data>
</layer> </layer>
</map> </map>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 155 B

After

Width:  |  Height:  |  Size: 519 B

View File

@ -33,10 +33,7 @@ var customMapFormat = {
file.writeLine(""); file.writeLine("");
} }
if(i < map.layerCount - 1) file.writeLine(" ],");
file.writeLine(" ],");
else
file.writeLine(" ]");
} }
} }