Tiled Map Editor Exploration + Bug Fixes
Tiled Setup: - Installed Tiled v1.11.2 (winget) - Created workflow documentation (.agent/workflows/tiled-map-setup.md) - Generated demo Tiled map files (farm_map.tmx, .json, .tsx) - Created TILED_INTEGRATION_STATUS.md documentation Bug Fixes: - SaveSystem.js: Fixed compatibility with Flat2DTerrainSystem - InteractionSystem.js: Added null checks for terrainSystem - PreloadScene.js: Tiled asset loading (currently not used) Documentation: - Created DNEVNIK.md (development diary) - Updated QUICK_TASK_REFERENCE.md with recent work Note: Tiled integration incomplete (tileset size issues) - Reverted to procedural Flat2DTerrainSystem (working) - Future work: Create proper 192x192 tileset PNGs Session: 2h (20:00-22:00) Date: 14.12.2024
This commit is contained in:
471
assets/maps/farm_map.json
Normal file
471
assets/maps/farm_map.json
Normal file
@@ -0,0 +1,471 @@
|
||||
{
|
||||
"compressionlevel": -1,
|
||||
"height": 20,
|
||||
"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,
|
||||
17,
|
||||
17,
|
||||
17,
|
||||
17,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
17,
|
||||
17,
|
||||
17,
|
||||
17,
|
||||
17,
|
||||
17,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
17,
|
||||
17,
|
||||
17,
|
||||
17,
|
||||
17,
|
||||
17,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
33,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
17,
|
||||
17,
|
||||
17,
|
||||
17,
|
||||
17,
|
||||
17,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
17,
|
||||
17,
|
||||
17,
|
||||
17,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
33,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
33,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
33,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
],
|
||||
"height": 20,
|
||||
"id": 1,
|
||||
"name": "Ground",
|
||||
"opacity": 1,
|
||||
"type": "tilelayer",
|
||||
"visible": true,
|
||||
"width": 20,
|
||||
"x": 0,
|
||||
"y": 0
|
||||
}
|
||||
],
|
||||
"nextlayerid": 2,
|
||||
"nextobjectid": 1,
|
||||
"orientation": "orthogonal",
|
||||
"renderorder": "right-down",
|
||||
"tiledversion": "1.11.0",
|
||||
"tileheight": 48,
|
||||
"tilesets": [
|
||||
{
|
||||
"columns": 64,
|
||||
"firstgid": 1,
|
||||
"image": "../tilesets/grass.png",
|
||||
"imageheight": 3072,
|
||||
"imagewidth": 3072,
|
||||
"margin": 0,
|
||||
"name": "grass_tileset",
|
||||
"spacing": 0,
|
||||
"tilecount": 4096,
|
||||
"tileheight": 48,
|
||||
"tilewidth": 48
|
||||
},
|
||||
{
|
||||
"columns": 64,
|
||||
"firstgid": 17,
|
||||
"image": "../tilesets/water.png",
|
||||
"imageheight": 3072,
|
||||
"imagewidth": 3072,
|
||||
"margin": 0,
|
||||
"name": "water_tileset",
|
||||
"spacing": 0,
|
||||
"tilecount": 4096,
|
||||
"tileheight": 48,
|
||||
"tilewidth": 48
|
||||
},
|
||||
{
|
||||
"columns": 64,
|
||||
"firstgid": 33,
|
||||
"image": "../tilesets/decorations.png",
|
||||
"imageheight": 3072,
|
||||
"imagewidth": 3072,
|
||||
"margin": 0,
|
||||
"name": "decorations_tileset",
|
||||
"spacing": 0,
|
||||
"tilecount": 4096,
|
||||
"tileheight": 48,
|
||||
"tilewidth": 48
|
||||
}
|
||||
],
|
||||
"tilewidth": 48,
|
||||
"type": "map",
|
||||
"version": "1.10",
|
||||
"width": 20
|
||||
}
|
||||
35
assets/maps/farm_map.tmx
Normal file
35
assets/maps/farm_map.tmx
Normal file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<map version="1.10" tiledversion="1.11.0" orientation="orthogonal" renderorder="right-down" width="100" height="100" tilewidth="48" tileheight="48" infinite="0" nextlayerid="5" nextobjectid="2">
|
||||
<tileset firstgid="1" name="grass_tileset" tilewidth="48" tileheight="48" tilecount="16" columns="4">
|
||||
<image source="../tilesets/tileset_grass_clean.png" width="192" height="192"/>
|
||||
</tileset>
|
||||
<tileset firstgid="17" name="water_tileset" tilewidth="48" tileheight="48" tilecount="16" columns="4">
|
||||
<image source="../tilesets/tileset_water_pond.png" width="192" height="192"/>
|
||||
<tile id="0">
|
||||
<properties>
|
||||
<property name="collides" type="bool" value="true"/>
|
||||
</properties>
|
||||
</tile>
|
||||
</tileset>
|
||||
<tileset firstgid="33" name="decorations_tileset" tilewidth="48" tileheight="48" tilecount="16" columns="4">
|
||||
<image source="../tilesets/tileset_decorations.png" width="192" height="192"/>
|
||||
</tileset>
|
||||
<layer id="1" name="Ground" width="100" height="100">
|
||||
<data encoding="base64" compression="zlib">
|
||||
eJzt0LEJAAAIwzDdf/+d7SBB8KEqAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGB3A5UfAAM=
|
||||
</data>
|
||||
</layer>
|
||||
<layer id="2" name="Water" width="100" height="100">
|
||||
<data encoding="base64" compression="zlib">
|
||||
eJzt2UEKgCAQBdD5/Zc2CwJpQCwYf+I9aJOL0XQRAAAAAAAAgB/2Nz6w2j47sNo+3xvvj/fH++P98f54f7w/3h/vj/dnzvtzZu6c2Ttnzp09a/as2bNmz5o9a/as2bNmz5o9a/bM2TPH+zP3/tz9fp3Ze+bsmTN7zuw5s+fMnjN7zuw5s2fNnjV71uxZs2fNnjV71uxZs2fNnjV71uxZs2fNnjV71uxZs2fNnjV71uxZs2fNnjV71uxZs2fNnjV71uxZAAAAAACALxdH8Aad
|
||||
</data>
|
||||
</layer>
|
||||
<layer id="3" name="Decorations" width="100" height="100">
|
||||
<data encoding="base64" compression="zlib">
|
||||
eJzt1sEJACAMA0Ddf2czCIL4aKE9SCAhAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8KcFpx4AAg==
|
||||
</data>
|
||||
</layer>
|
||||
<objectgroup id="4" name="SpawnPoints">
|
||||
<object id="1" name="PlayerSpawn" x="2400" y="2400" width="48" height="48"/>
|
||||
</objectgroup>
|
||||
</map>
|
||||
BIN
assets/tilesets/decorations.png
Normal file
BIN
assets/tilesets/decorations.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 519 KiB |
4
assets/tilesets/decorations_tileset.tsx
Normal file
4
assets/tilesets/decorations_tileset.tsx
Normal file
@@ -0,0 +1,4 @@
|
||||
<? xml version = "1.0" encoding = "UTF-8" ?>
|
||||
<tileset version="1.10" tiledversion="1.11.0" name="decorations_tileset" tilewidth="48" tileheight="48" tilecount="16" columns="4">
|
||||
<image source="tileset_decorations.png" width="192" height="192" />
|
||||
</tileset>
|
||||
BIN
assets/tilesets/dirt.png
Normal file
BIN
assets/tilesets/dirt.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 519 KiB |
BIN
assets/tilesets/grass.png
Normal file
BIN
assets/tilesets/grass.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 609 KiB |
4
assets/tilesets/grass_tileset.tsx
Normal file
4
assets/tilesets/grass_tileset.tsx
Normal file
@@ -0,0 +1,4 @@
|
||||
<? xml version = "1.0" encoding = "UTF-8" ?>
|
||||
<tileset version="1.10" tiledversion="1.11.0" name="grass_tileset" tilewidth="48" tileheight="48" tilecount="16" columns="4">
|
||||
<image source="tileset_grass_clean.png" width="192" height="192" />
|
||||
</tileset>
|
||||
BIN
assets/tilesets/water.png
Normal file
BIN
assets/tilesets/water.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 481 KiB |
9
assets/tilesets/water_tileset.tsx
Normal file
9
assets/tilesets/water_tileset.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
<? xml version = "1.0" encoding = "UTF-8" ?>
|
||||
<tileset version="1.10" tiledversion="1.11.0" name="water_tileset" tilewidth="48" tileheight="48" tilecount="16" columns="4">
|
||||
<image source="tileset_water_pond.png" width="192" height="192" />
|
||||
<tile id="0">
|
||||
<properties>
|
||||
<property name="collides" type="bool" value="true" />
|
||||
</properties>
|
||||
</tile>
|
||||
</tileset>
|
||||
Reference in New Issue
Block a user