refactor rendersystem and introduce new TiledService and AssetService

This commit is contained in:
Quillraven
2025-05-25 13:35:55 +02:00
parent eb1c0a9f72
commit 4cff5d2992
10 changed files with 227 additions and 90 deletions

View File

@@ -10,16 +10,27 @@
"fileStates": {
"mainmap.tmx": {
"scale": 1.74265625,
"selectedLayer": 3,
"selectedLayer": 4,
"viewCenter": {
"x": 191.94835470277056,
"y": 356.35255088317047
"x": 152.9274634627455,
"y": 285.1968080337129
}
},
"objects.tsx": {
"dynamicWrapping": true
"dynamicWrapping": true,
"scaleInDock": 1,
"scaleInEditor": 1
},
"secondmap.tmx": {
"scale": 1.6328125,
"selectedLayer": 4,
"viewCenter": {
"x": 288.1531100478469,
"y": 256
}
},
"tileset.tsx": {
"dynamicWrapping": false,
"scaleInDock": 1,
"scaleInEditor": 1
}
@@ -32,11 +43,13 @@
"map.width": 20,
"openFiles": [
"mainmap.tmx",
"tileset.tsx"
"tileset.tsx",
"objects.tsx"
],
"project": "mystic.tiled-project",
"property.type": "float",
"recentFiles": [
"objects.tsx",
"tileset.tsx",
"mainmap.tmx"
],

28
assets/maps/secondmap.tmx Normal file
View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.10" tiledversion="1.11.1-99-gec89c545" orientation="orthogonal" renderorder="right-down" width="18" height="16" tilewidth="32" tileheight="32" infinite="0" nextlayerid="6" nextobjectid="3">
<tileset firstgid="1" source="tileset.tsx"/>
<tileset firstgid="99" source="objects.tsx"/>
<layer id="1" name="ground" width="18" height="16">
<data encoding="base64" compression="zlib">
eJx9k1EOgDAMQnuC0fufVj9c0jyhH426RmiBdVXpq/NWf89b7DXe3XfjHwHvGL5e+hfD9RR4Jyfx545acLjf1INcqr8W3CdhzRkFbrc3+elb0oN7J4+pjfNl027z12XM4au8rvOcZw6bnnBWzpw0Tr47zxKu67m7xDwkz1MuqWnCp5bprqQMu5mYGZfl2X8AE4YQ2w==
</data>
</layer>
<layer id="3" name="water" width="18" height="16">
<data encoding="base64" compression="zlib">
eJxjYBgFo2AUjIKBAQAEgAAB
</data>
</layer>
<layer id="4" name="water2" width="18" height="16">
<data encoding="base64" compression="zlib">
eJxjYBgFo2AUjIKBAQAEgAAB
</data>
</layer>
<layer id="2" name="props" width="18" height="16">
<data encoding="base64" compression="zlib">
eJxjYBgFo2AUjIKBAQAEgAAB
</data>
</layer>
<objectgroup id="5" name="objects">
<object id="2" gid="99" x="67.2153" y="411.713" width="64" height="64"/>
</objectgroup>
</map>