Commit Graph

17 Commits

Author SHA1 Message Date
822c586843 feat(expansion): implement Phase 3 (Town Restoration) and Phase 4 (Cannabis Textiles)
- Added TownSquareScene and linked it with M key transition
- Integrated TownRestorationSystem with material costs and inventory
- Added locked shop items in NPCShopSystem until buildings are restored
- Updated InteractionSystem to handle ruin restoration triggers
- Expanded Cannabis farming to yield Hemp Fiber
- Added Hemp Clothing crafting recipe and procedural icons
- Refactored StatusEffectSystem and NPCShopSystem to global classes
2025-12-27 23:32:22 +01:00
a4d2d137ec 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
2025-12-14 22:55:29 +01:00
6e998d516d posodobitev 2025-12-11 19:36:08 +01:00
81a7895c10 phase 12 koncxana 2025-12-08 14:16:24 +01:00
f3d476e843 phase 11 koncano 2025-12-08 14:01:41 +01:00
07f0752d81 phase 11 part1 2025-12-08 12:30:15 +01:00
3336b59e7d popravki 2025-12-08 11:28:44 +01:00
b750f320fc Phase 7: World Structure (New Direction) 2025-12-08 10:56:47 +01:00
b79b70dcc1 rendom 2025-12-08 10:47:53 +01:00
e49f567831 farma updejt 2025-12-08 01:39:39 +01:00
7834aee111 mesano 2025-12-08 00:18:56 +01:00
6b8f9aee66 dreva in kamni top 2025-12-07 22:32:45 +01:00
974141c08c mapa 2025-12-07 21:31:44 +01:00
045bf24792 kockasta mapa 2025-12-07 14:28:39 +01:00
2404d44ef7 udomacenje zombija in uboj\ 2025-12-07 12:47:47 +01:00
521468c797 različne velikosti dreves 2025-12-07 03:40:50 +01:00
9eb57ed117 FAZA 17: 2.5D Minecraft-Style Terrain + Y-Layer Stacking + Custom Sprites
COMPLETED FEATURES:

 Custom Sprite Integration:
- Player, Zombie, Merchant sprites (0.2 scale)
- 11 custom sprites + 5 asset packs loaded
- Auto-transparency processing (white/brown removal)
- Gravestone system with atlas extraction

 2.5D Minecraft-Style Terrain:
- Volumetric blocks with 25px thickness
- Strong left/right side shading (30%/50% darker)
- Minecraft-style texture patterns (grass, dirt, stone)
- Crisp black outlines for definition

 Y-Layer Stacking System:
- GRASS_FULL: All green (elevation > 0.7)
- GRASS_TOP: Green top + brown sides (elevation 0.4-0.7)
- DIRT: All brown (elevation < 0.4)
- Dynamic terrain depth based on height

 Floating Island World Edge:
- Stone cliff walls at map borders
- 2-tile transition zone
- Elevation flattening for cliff drop-off effect
- 100x100 world with defined boundaries

 Performance & Polish:
- Canvas renderer for pixel-perfect sharpness
- CSS image-rendering: crisp-edges
- willReadFrequently optimization
- No Canvas2D warnings

 Technical:
- 3D volumetric trees and rocks
- Hybrid rendering (2.5D terrain + 2D characters)
- Procedural texture generation
- Y-layer aware terrain type selection
2025-12-07 01:44:16 +01:00