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:
2025-12-14 22:55:29 +01:00
parent 80bddf5d61
commit a4d2d137ec
20 changed files with 1248 additions and 186 deletions

471
assets/maps/farm_map.json Normal file
View 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
}