-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This PR implements the logic to parse collection of images based Tiled tilesets. <img width="270" alt="image" src="https://user-images.githubusercontent.com/612071/177015856-d32091fa-7450-4856-afa9-76283a51c65c.png"> <img width="659" alt="image" src="https://user-images.githubusercontent.com/612071/175797163-cfd4e6f6-1552-445b-9660-3426353fb551.png"> TODOs * [x] Tests * [x] JSON collection of image tileset * [x] External JSON collection of image tileset
- Loading branch information
Showing
13 changed files
with
419 additions
and
38 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<tileset version="1.9" tiledversion="1.9.0" name="external-collection" tilewidth="111" tileheight="128" tilecount="5" columns="0"> | ||
<grid orientation="orthogonal" width="1" height="1"/> | ||
<tile id="0"> | ||
<image width="111" height="128" source="assets/isometric-blocks/PNG/Abstract tiles/abstractTile_08.png"/> | ||
</tile> | ||
<tile id="1"> | ||
<image width="111" height="128" source="assets/isometric-blocks/PNG/Abstract tiles/abstractTile_16.png"/> | ||
</tile> | ||
<tile id="2"> | ||
<image width="111" height="128" source="assets/isometric-blocks/PNG/Abstract tiles/abstractTile_17.png"/> | ||
</tile> | ||
<tile id="3"> | ||
<image width="111" height="128" source="assets/isometric-blocks/PNG/Abstract tiles/abstractTile_28.png"/> | ||
</tile> | ||
<tile id="4"> | ||
<image width="111" height="128" source="assets/isometric-blocks/PNG/Abstract tiles/abstractTile_29.png"/> | ||
</tile> | ||
</tileset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ "columns":0, | ||
"grid": | ||
{ | ||
"height":1, | ||
"orientation":"orthogonal", | ||
"width":1 | ||
}, | ||
"margin":0, | ||
"name":"external-collection-json", | ||
"spacing":0, | ||
"tilecount":3, | ||
"tiledversion":"1.9.0", | ||
"tileheight":128, | ||
"tiles":[ | ||
{ | ||
"id":0, | ||
"image":"assets\/isometric-blocks\/PNG\/Abstract tiles\/abstractTile_13.png", | ||
"imageheight":128, | ||
"imagewidth":111 | ||
}, | ||
{ | ||
"id":1, | ||
"image":"assets\/isometric-blocks\/PNG\/Abstract tiles\/abstractTile_14.png", | ||
"imageheight":128, | ||
"imagewidth":111 | ||
}, | ||
{ | ||
"id":2, | ||
"image":"assets\/isometric-blocks\/PNG\/Abstract tiles\/abstractTile_15.png", | ||
"imageheight":128, | ||
"imagewidth":111 | ||
}], | ||
"tilewidth":111, | ||
"type":"tileset", | ||
"version":"1.8" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ "columns":0, | ||
"grid": | ||
{ | ||
"height":1, | ||
"orientation":"orthogonal", | ||
"width":1 | ||
}, | ||
"margin":0, | ||
"name":"collection-external", | ||
"spacing":0, | ||
"tilecount":2, | ||
"tiledversion":"1.9.0", | ||
"tileheight":128, | ||
"tiles":[ | ||
{ | ||
"id":0, | ||
"image":"test\/unit\/assets\/platformerTile_40.png" | ||
}, | ||
{ | ||
"id":1, | ||
"image":"test\/unit\/assets\/platformerTile_48.png" | ||
}], | ||
"tilewidth":111, | ||
"type":"tileset", | ||
"version":"1.8" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<tileset version="1.9" tiledversion="1.9.0" name="collection-external" tilewidth="111" tileheight="128" tilecount="2" columns="0"> | ||
<grid orientation="orthogonal" width="1" height="1"/> | ||
<tile id="0"> | ||
<image width="111" height="128" source="test/unit/assets/platformerTile_40.png"/> | ||
</tile> | ||
<tile id="1"> | ||
<image width="111" height="128" source="test/unit/assets/platformerTile_48.png"/> | ||
</tile> | ||
</tileset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.