Added initial support for Tiled maps

This commit is contained in:
2019-10-11 13:17:59 -05:00
parent e67325e831
commit 44e9dcf7d7
11 changed files with 292 additions and 101 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

@@ -1,4 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<tileset version="1.2" tiledversion="1.2.1" name="default" tilewidth="32" tileheight="32" tilecount="4" columns="4">
<tileset version="1.2" tiledversion="1.2.4" name="default" tilewidth="32" tileheight="32" tilecount="4" columns="4">
<image source="default.png" trans="ffffff" width="128" height="32"/>
<tile id="0" type="ground">
<properties>
<property name="travel_cost" type="float" value="1"/>
</properties>
</tile>
<tile id="1" type="ground">
<properties>
<property name="travel_cost" type="float" value="1"/>
</properties>
</tile>
<tile id="2" type="ground">
<properties>
<property name="travel_cost" type="float" value="2"/>
</properties>
</tile>
<tile id="3" type="water">
<properties>
<property name="travel_cost" type="float" value="1"/>
</properties>
</tile>
</tileset>

BIN
assets/tilesets/ore.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

6
assets/tilesets/ore.tsx Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<tileset version="1.2" tiledversion="1.2.4" name="ore" tilewidth="32" tileheight="32" tilecount="4" columns="4">
<image source="ore.png" width="128" height="32"/>
<tile id="0" type="ore"/>
<tile id="1" type="ore"/>
</tileset>