summaryrefslogtreecommitdiffstats
path: root/res/maps
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2018-12-22 04:00:45 +0100
committerNao Pross <naopross@thearcway.org>2018-12-22 04:01:22 +0100
commitda3f74c914afd6529f8b89d2c90b96056c1b5394 (patch)
tree7af4e9b58a7a1f6289b5059ddff70e4fbccd8408 /res/maps
parentSkip rendering for blank tiles (value = 0) (diff)
downloadSubconscious-rs-da3f74c914afd6529f8b89d2c90b96056c1b5394.tar.gz
Subconscious-rs-da3f74c914afd6529f8b89d2c90b96056c1b5394.zip
Move tilesets inside res/maps, add error messages for map assets loading
The resources have been moved as a subdirectory of maps because Rust-Embed cannot resolve relative path when resources are embedded in the binary.
Diffstat (limited to 'res/maps')
-rw-r--r--res/maps/demo.tmx8
-rw-r--r--res/maps/tilesets/cliff.pngbin0 -> 96155 bytes
-rw-r--r--res/maps/tilesets/ground.pngbin0 -> 227339 bytes
-rw-r--r--res/maps/tilesets/objects.pngbin0 -> 32479 bytes
-rw-r--r--res/maps/tilesets/water.pngbin0 -> 71295 bytes
5 files changed, 4 insertions, 4 deletions
diff --git a/res/maps/demo.tmx b/res/maps/demo.tmx
index 0b8a539..cf10ad2 100644
--- a/res/maps/demo.tmx
+++ b/res/maps/demo.tmx
@@ -1,16 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.0" tiledversion="1.0.3" orientation="orthogonal" renderorder="right-down" width="12" height="12" tilewidth="32" tileheight="32" nextobjectid="1">
<tileset firstgid="1" name="ground" tilewidth="32" tileheight="32" tilecount="441" columns="21">
- <image source="../tilesets/ground.png" width="672" height="701"/>
+ <image source="tilesets/ground.png" width="672" height="701"/>
</tileset>
<tileset firstgid="442" name="cliff" tilewidth="32" tileheight="32" tilecount="240" columns="15">
- <image source="../tilesets/cliff.png" width="503" height="518"/>
+ <image source="tilesets/cliff.png" width="503" height="518"/>
</tileset>
<tileset firstgid="682" name="objects" tilewidth="32" tileheight="32" tilecount="84" columns="14">
- <image source="../tilesets/objects.png" width="477" height="219"/>
+ <image source="tilesets/objects.png" width="477" height="219"/>
</tileset>
<tileset firstgid="766" name="water" tilewidth="32" tileheight="32" tilecount="81" columns="9">
- <image source="../tilesets/water.png" width="319" height="293"/>
+ <image source="tilesets/water.png" width="319" height="293"/>
</tileset>
<layer name="ground" width="12" height="12">
<data encoding="base64" compression="zlib">
diff --git a/res/maps/tilesets/cliff.png b/res/maps/tilesets/cliff.png
new file mode 100644
index 0000000..6ab54c2
--- /dev/null
+++ b/res/maps/tilesets/cliff.png
Binary files differ
diff --git a/res/maps/tilesets/ground.png b/res/maps/tilesets/ground.png
new file mode 100644
index 0000000..80ccd33
--- /dev/null
+++ b/res/maps/tilesets/ground.png
Binary files differ
diff --git a/res/maps/tilesets/objects.png b/res/maps/tilesets/objects.png
new file mode 100644
index 0000000..599c476
--- /dev/null
+++ b/res/maps/tilesets/objects.png
Binary files differ
diff --git a/res/maps/tilesets/water.png b/res/maps/tilesets/water.png
new file mode 100644
index 0000000..e5c5c73
--- /dev/null
+++ b/res/maps/tilesets/water.png
Binary files differ