Map loading fixes and improvements
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 268 B |
Binary file not shown.
Before Width: | Height: | Size: 346 B |
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<map version="1.10" tiledversion="1.11.0" orientation="orthogonal" renderorder="right-down" width="30" height="20" tilewidth="8" tileheight="8" infinite="0" nextlayerid="3" nextobjectid="5">
|
||||
<tileset firstgid="1" source="tilemap.tsx"/>
|
||||
<tileset firstgid="65" source="entities.tsx"/>
|
||||
<map version="1.10" tiledversion="1.11.0" orientation="orthogonal" renderorder="right-down" width="30" height="20" tilewidth="8" tileheight="8" infinite="0" nextlayerid="3" nextobjectid="7">
|
||||
<tileset firstgid="1" source="../tilemaps/tilemap.tsx"/>
|
||||
<tileset firstgid="65" source="../tilemaps/entities.tsx"/>
|
||||
<layer id="1" name="Map" width="30" height="20" locked="1">
|
||||
<data encoding="csv">
|
||||
1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,2,2,2,2,
|
||||
@ -28,5 +28,19 @@
|
||||
</layer>
|
||||
<objectgroup id="2" name="Entities">
|
||||
<object id="4" name="Player" type="player" gid="66" x="87.7275" y="119.497" width="8" height="8"/>
|
||||
<object id="5" name="Sign" type="sign" gid="68" x="86.8498" y="55.0415" width="8" height="8">
|
||||
<properties>
|
||||
<property name="texts_0" value="maps.testmap.sign2.1"/>
|
||||
<property name="texts_1" value="maps.testmap.sign2.2"/>
|
||||
</properties>
|
||||
</object>
|
||||
<object id="6" name="Door" type="door" gid="69" x="111.791" y="55.7608" width="8" height="8">
|
||||
<properties>
|
||||
<property name="direction" type="int" value="2"/>
|
||||
<property name="map" value="testmap2.map"/>
|
||||
<property name="x" type="int" value="11"/>
|
||||
<property name="y" type="int" value="2"/>
|
||||
</properties>
|
||||
</object>
|
||||
</objectgroup>
|
||||
</map>
|
17
assets/maps/testmap2.tmx
Normal file
17
assets/maps/testmap2.tmx
Normal file
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<map version="1.10" tiledversion="1.11.0" orientation="orthogonal" renderorder="right-down" width="5" height="5" tilewidth="8" tileheight="8" infinite="0" nextlayerid="2" nextobjectid="1">
|
||||
<tileset firstgid="1" source="../tilemaps/tilemap.tsx"/>
|
||||
<tileset firstgid="67" source="../tilemaps/entities.tsx"/>
|
||||
<layer id="1" name="Tile Layer 1" width="5" height="5">
|
||||
<data encoding="csv">
|
||||
2,2,2,2,2,
|
||||
2,2,2,3,2,
|
||||
2,2,3,3,2,
|
||||
2,2,3,2,2,
|
||||
2,3,3,2,2
|
||||
</data>
|
||||
</layer>
|
||||
<objectgroup id="2" name="Entities">
|
||||
<object id="4" name="Player" type="player" gid="68" x="6.54983" y="15.3437" width="8" height="8"/>
|
||||
</objectgroup>
|
||||
</map>
|
@ -5,7 +5,9 @@
|
||||
},
|
||||
"activeFile": "",
|
||||
"expandedProjectPaths": [
|
||||
"."
|
||||
],
|
||||
"file.lastUsedOpenFilter": "All Files (*)",
|
||||
"fileStates": {
|
||||
"": {
|
||||
"scaleInDock": 1
|
||||
@ -14,12 +16,31 @@
|
||||
"scaleInDock": 1,
|
||||
"scaleInEditor": 1
|
||||
},
|
||||
"testmap.tmx": {
|
||||
"scale": 3.281458333333333,
|
||||
"maps/testmap.tmx": {
|
||||
"expandedObjectLayers": [
|
||||
2
|
||||
],
|
||||
"scale": 3.404166666666667,
|
||||
"selectedLayer": 1,
|
||||
"viewCenter": {
|
||||
"x": 97.36524665100629,
|
||||
"y": 58.20582820138405
|
||||
"x": 116.328029375765,
|
||||
"y": 79.90208078335371
|
||||
}
|
||||
},
|
||||
"maps/testmap2.tmx": {
|
||||
"scale": 5.0383,
|
||||
"selectedLayer": 1,
|
||||
"viewCenter": {
|
||||
"x": 33.940019451005305,
|
||||
"y": 35.726336264216116
|
||||
}
|
||||
},
|
||||
"testmap.tmx": {
|
||||
"scale": 3.23,
|
||||
"selectedLayer": 1,
|
||||
"viewCenter": {
|
||||
"x": 122.60061919504646,
|
||||
"y": 56.965944272445824
|
||||
}
|
||||
},
|
||||
"testmap2.tmx": {
|
||||
@ -35,19 +56,19 @@
|
||||
"scaleInEditor": 4
|
||||
}
|
||||
},
|
||||
"last.externalTilesetPath": "/home/yourwishes/htdocs/Dawn/assets/map",
|
||||
"last.imagePath": "/home/yourwishes/htdocs/Dawn/assets/map",
|
||||
"last.externalTilesetPath": "/home/yourwishes/htdocs/Dawn/assets",
|
||||
"last.imagePath": "/home/yourwishes/htdocs/Dawn/assets",
|
||||
"map.height": 5,
|
||||
"map.lastUsedFormat": "tmx",
|
||||
"map.tileHeight": 8,
|
||||
"map.tileWidth": 8,
|
||||
"map.width": 5,
|
||||
"openFiles": [
|
||||
],
|
||||
"project": "tiled_project.tiled-project",
|
||||
"property.type": "string",
|
||||
"recentFiles": [
|
||||
"testmap.tmx",
|
||||
"tilemap.tsx",
|
||||
"entities.tsx",
|
||||
"testmap2.tmx"
|
||||
"maps/testmap2.tmx"
|
||||
],
|
||||
"tileset.lastUsedFilter": "All Files (*)",
|
||||
"tileset.lastUsedFormat": "tsx",
|
BIN
assets/tilemaps/entities.png
Normal file
BIN
assets/tilemaps/entities.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 326 B |
BIN
assets/tilemaps/tilemap.png
Normal file
BIN
assets/tilemaps/tilemap.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 322 B |
Reference in New Issue
Block a user