Skip to content

Commit 2c8ce96

Browse files
authored
Merge pull request #1328 from melonjs/feature/oblique-orientation
Support Tiled 1.12 oblique map orientation
2 parents ef44d01 + a8a8b41 commit 2c8ce96

18 files changed

Lines changed: 492 additions & 2 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<map version="1.10" tiledversion="1.12.1" orientation="oblique" renderorder="right-down" width="10" height="10" tilewidth="40" tileheight="14" infinite="0" skewx="12" nextlayerid="3" nextobjectid="1">
3+
<tileset firstgid="1" name="oblique_tiles" tilewidth="51" tileheight="26" tilecount="2" columns="0">
4+
<tile id="0">
5+
<image source="oblique/gravel.png" width="51" height="26"/>
6+
</tile>
7+
<tile id="1">
8+
<image source="oblique/hole.png" width="51" height="26"/>
9+
</tile>
10+
</tileset>
11+
<layer id="1" name="Ground" width="10" height="10">
12+
<data encoding="csv">
13+
1,1,1,1,1,1,1,1,1,1,
14+
1,1,2,1,1,1,1,1,1,1,
15+
1,1,1,1,1,2,1,1,1,1,
16+
1,2,1,1,1,1,1,1,2,1,
17+
1,1,1,1,1,1,1,1,1,1,
18+
1,1,1,2,1,1,2,1,1,1,
19+
1,1,1,1,1,1,1,1,1,1,
20+
1,1,1,1,1,1,1,1,1,1,
21+
1,2,1,1,1,1,1,2,1,1,
22+
1,1,1,1,1,1,1,1,1,1
23+
</data>
24+
</layer>
25+
</map>
1.63 KB
Loading
1.43 KB
Loading
2.71 KB
Loading
4.1 KB
Loading
2.48 KB
Loading
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<map version="1.10" tiledversion="1.12.1" orientation="oblique" renderorder="right-down" width="10" height="10" tilewidth="40" tileheight="14" infinite="0" skewx="12" nextlayerid="3" nextobjectid="1">
3+
<tileset firstgid="1" name="oblique_tiles" tilewidth="51" tileheight="26" tilecount="2" columns="0">
4+
<tile id="0">
5+
<image source="oblique/gravel.png" width="51" height="26"/>
6+
</tile>
7+
<tile id="1">
8+
<image source="oblique/hole.png" width="51" height="26"/>
9+
</tile>
10+
</tileset>
11+
<layer id="1" name="Ground" width="10" height="10">
12+
<data encoding="csv">
13+
1,1,1,1,1,1,1,1,1,1,
14+
1,1,2,1,1,1,1,1,1,1,
15+
1,1,1,1,1,2,1,1,1,1,
16+
1,2,1,1,1,1,1,1,2,1,
17+
1,1,1,1,1,1,1,1,1,1,
18+
1,1,1,2,1,1,2,1,1,1,
19+
1,1,1,1,1,1,1,1,1,1,
20+
1,1,1,1,1,1,1,1,1,1,
21+
1,2,1,1,1,1,1,2,1,1,
22+
1,1,1,1,1,1,1,1,1,1
23+
</data>
24+
</layer>
25+
</map>
1.63 KB
Loading
1.43 KB
Loading
2.71 KB
Loading

0 commit comments

Comments
 (0)