aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorIndrajith K L2021-08-01 02:26:00 +0530
committerIndrajith K L2021-08-01 02:26:00 +0530
commitb73889da9f33b883894db6a989037030fee99f95 (patch)
treefde19617d41bd0cfd71224a3166aa3f38c53b54d /assets
parent4cd16130dcab278e3c1204eebcc04d47f2676007 (diff)
downloadrebirth-wren-b73889da9f33b883894db6a989037030fee99f95.tar.gz
rebirth-wren-b73889da9f33b883894db6a989037030fee99f95.tar.bz2
rebirth-wren-b73889da9f33b883894db6a989037030fee99f95.zip
Basic Renderer
* Adds Tiled map JSON rendering * TODO Cleanup & Organization
Diffstat (limited to 'assets')
-rw-r--r--assets/level1.json73
-rw-r--r--assets/level1.tmx67
-rw-r--r--assets/main_tileset.tsx4
-rw-r--r--assets/tilemap_packed.pngbin0 -> 4501 bytes
4 files changed, 144 insertions, 0 deletions
diff --git a/assets/level1.json b/assets/level1.json
new file mode 100644
index 0000000..ea69794
--- /dev/null
+++ b/assets/level1.json
@@ -0,0 +1,73 @@
+{ "compressionlevel":-1,
+ "editorsettings":
+ {
+ "export":
+ {
+ "format":"json",
+ "target":"level1.json"
+ }
+ },
+ "height":16,
+ "infinite":false,
+ "layers":[
+ {
+ "data":[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
+ "height":16,
+ "id":4,
+ "name":"Tile Layer 3",
+ "opacity":1,
+ "type":"tilelayer",
+ "visible":true,
+ "width":16,
+ "x":0,
+ "y":0
+ }],
+ "nextlayerid":5,
+ "nextobjectid":1,
+ "orientation":"orthogonal",
+ "renderorder":"right-down",
+ "tiledversion":"1.5.0",
+ "tileheight":16,
+ "tilesets":[
+ {
+ "columns":17,
+ "firstgid":1,
+ "image":"tilemap_packed.png",
+ "imageheight":128,
+ "imagewidth":272,
+ "margin":0,
+ "name":"main_tileset",
+ "spacing":0,
+ "tilecount":136,
+ "tileheight":16,
+ "tilewidth":16
+ }],
+ "tilewidth":16,
+ "type":"map",
+ "version":1.5,
+ "width":16
+} \ No newline at end of file
diff --git a/assets/level1.tmx b/assets/level1.tmx
new file mode 100644
index 0000000..2fe128f
--- /dev/null
+++ b/assets/level1.tmx
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<map version="1.5" tiledversion="1.5.0" orientation="orthogonal" renderorder="right-down" width="16" height="16" tilewidth="16" tileheight="16" infinite="0" nextlayerid="5" nextobjectid="1">
+ <editorsettings>
+ <export target="level1.json" format="json"/>
+ </editorsettings>
+ <tileset firstgid="1" source="main_tileset.tsx"/>
+ <layer id="1" name="ground" width="16" height="16">
+ <data encoding="csv">
+1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
+1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
+1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
+1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
+1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
+1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
+1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
+1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
+1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
+1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
+1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
+1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
+1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
+1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
+1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
+1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
+</data>
+ </layer>
+ <layer id="2" name="buildings" width="16" height="16">
+ <data encoding="csv">
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,81,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,97,98,99,0,0,0,0,0,0,0,
+0,0,0,0,0,0,114,115,116,0,0,0,0,0,0,0,
+0,0,0,0,0,0,131,132,133,0,0,0,0,0,0,0,
+0,0,0,0,0,0,108,110,109,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
+</data>
+ </layer>
+ <layer id="4" name="Tile Layer 3" width="16" height="16">
+ <data encoding="csv">
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,120,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
+</data>
+ </layer>
+</map>
diff --git a/assets/main_tileset.tsx b/assets/main_tileset.tsx
new file mode 100644
index 0000000..0b0b1d6
--- /dev/null
+++ b/assets/main_tileset.tsx
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<tileset version="1.5" tiledversion="1.5.0" name="main_tileset" tilewidth="16" tileheight="16" tilecount="136" columns="17">
+ <image source="tilemap_packed.png" width="272" height="128"/>
+</tileset>
diff --git a/assets/tilemap_packed.png b/assets/tilemap_packed.png
new file mode 100644
index 0000000..6f47609
--- /dev/null
+++ b/assets/tilemap_packed.png
Binary files differ