Commit Graph

81 Commits

Author SHA1 Message Date
4cf6350d11 Phase 37: Micro Farm & Expansion System Complete
MICRO FARM SYSTEM (8x8):
- Initial 8x8 farm boundary (center spawn)
- White boundary visualization
- Corner markers for clear boundaries
- Locked tile tracking (Set-based)

 VISUAL FEEDBACK:
- Locked tile overlay (30% black)
- Clear visual distinction (farm vs locked)
- Dynamic rendering (15 tile radius)
- Depth-sorted overlays

 FARMING RESTRICTIONS:
- Block tilling outside farm boundary
- Error messages (floating text)
- Farm boundary validation
- FarmingSystem integration

 EXPANSION SYSTEM:
- 4-direction unlock buttons (N/S/E/W)
- Cost system (50 gold per expansion)
- 2x2 tile unlock increments
- Visual updates (boundaries + overlay)

 UI INTEGRATION:
- Interactive expansion buttons
- Hover effects (color + scale)
- Cost labels (gold display)
- Success/error feedback

 MINIMAP INTEGRATION:
- Farm boundary in minimap
- White box indicator
- Player-relative rendering
- Fixed terrain system compatibility

 TECHNICAL FIXES:
- Added decorationsMap to Flat2DTerrainSystem
- Fixed variable scope issues
- UIScene minimap compatibility
- TerrainSystem.getTile() integration

 FILES CREATED/MODIFIED:
- src/systems/MicroFarmSystem.js (NEW!)
- src/systems/FarmingSystem.js
- src/systems/Flat2DTerrainSystem.js
- src/scenes/GameScene.js
- src/scenes/UIScene.js
- index.html

Session: 1h (00:50-01:19)
Date: 15.12.2024
Status:  PHASE 37 COMPLETE!
2025-12-15 01:20:14 +01:00
344fbc307d Session 3: Tree Variety System Complete
TREE VARIETIES IMPLEMENTED:
- Added 5 tree types: Cherry, Oak, Pine, Dead, Apple
- AI-generated PNG sprites with transparent backgrounds
- Random tree selection for natural diversity
- Growth scaling (0.4-0.6x for variety)

 VISUAL IMPROVEMENTS:
- 2.5D depth sorting (Y-position based)
- Proper shadows matching tree size
- Layered rendering for perspective

 TRANSPARENCY FIXES:
- Disabled automatic sprite processing
- User manually removed green screen backgrounds
- Fixed pink/red color preservation
- Trees now render with proper transparency

 TREE DISTRIBUTION:
- Reduced from ~78 to 10 trees (87% reduction)
- Removed corner forest clusters (too crowded)
- Sparse scattered placement across 100x100 map
- Wider spacing (8-15 tiles apart)
- Small tree sizes (0.35-0.7x scale, ~50% reduction)

 TECHNICAL CHANGES:
- PreloadScene: Added tree sprite loading
- PreloadScene: Disabled processAllTransparency()
- Flat2DTerrainSystem: PNG sprite rendering with fallback
- map2d_data.js: Sparse tree generation
- Green removal threshold: g > 180 (preserves pink/red)

 FILES MODIFIED:
- src/scenes/PreloadScene.js
- src/systems/Flat2DTerrainSystem.js
- data/map2d_data.js
- assets/sprites/tree_*.png (5 new sprites)
- docs/DNEVNIK.md (updated with user availability)

Session: 1.5h (23:28-00:48)
Date: 14-15.12.2024
2025-12-15 00:49:06 +01:00
c5d6c01305 Cherry Blossom Trees Session 2 + GREEN SCREEN Learning
Session 2 Work:
- Added cherry blossom tree PNG sprites (multiple attempts)
- Implemented random tree growth (0.3x - 0.7x scale)
- Increased scattered trees (15  50 across map)
- Wider tree distribution (10-90 range)

 Green Screen Experiments:
- Attempted AI-generated PNG with green screen (#00FF00)
- Implemented green chroma-key removal in PreloadScene
- Multiple iterations (normal  ultra  nuclear green removal)
- Conclusion: AI green screen unreliable, reverted to procedural

 Final Solution:
- Disabled PNG sprite rendering
- Using 100% procedural cherry blossom trees (pink triangles)
- Random growth scaling for variety
- 50+ trees scattered across entire map

 Documentation:
- Updated DNEVNIK.md with Session 2
- Added GREEN SCREEN RULE for future AI image generation
- Documented lessons learned

 Key Lessons:
- AI transparency/green screen NOT reliable
- Procedural graphics > problematic PNGs
- Hollywood uses green screen, but AI can't do it consistently
- Always have fallback plan!

Session: 1h (22:30-23:20)
Date: 14.12.2024
2025-12-14 23:21:36 +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
80bddf5d61 feat: Complete 2D Visual Overhaul - Isometric to Flat Top-Down
- NEW: Flat2DTerrainSystem.js (375 lines)
- NEW: map2d_data.js procedural map (221 lines)
- MODIFIED: GameScene async create, 2D terrain integration
- MODIFIED: Player.js flat 2D positioning
- MODIFIED: game.js disabled pixelArt for smooth rendering
- FIXED: 15+ bugs (updateCulling, isometric conversions, grid lines)
- ADDED: Phase 28 to TASKS.md
- DOCS: DNEVNIK.md session summary

Result: Working flat 2D game with Stardew Valley style!
Time: 5.5 hours
2025-12-14 17:12:40 +01:00
c3dd39e1a6 test 2025-12-14 12:36:46 +01:00
0131f1490f carakter 2025-12-14 12:21:17 +01:00
abb9af9063 charakter 2025-12-13 04:34:11 +01:00
9481bfc9b8 delo2 2025-12-13 03:18:34 +01:00
725cd98e7c inventori 2025-12-13 03:07:45 +01:00
f0cd2ae056 tuturiol 2025-12-13 01:33:27 +01:00
c618f3d7fa updejt 2025-12-13 01:29:24 +01:00
f6450cd3b8 1 2025-12-13 00:58:46 +01:00
0b65d86e65 narejeno 2025-12-13 00:02:38 +01:00
93757fc8c4 acesesibiliti 2025-12-12 22:46:38 +01:00
42074d3169 Smart Subtitles 2025-12-12 13:55:54 +01:00
6c583a6576 posodobitve 2025-12-12 13:40:51 +01:00
a210638002 podobi 2025-12-12 10:17:21 +01:00
84b07bb433 test 2025-12-12 02:41:00 +01:00
e15b429e75 svet 2025-12-12 00:13:55 +01:00
158beec572 sezsa 2025-12-11 22:44:38 +01:00
fa61ccc5a3 updeit 2025-12-11 21:09:03 +01:00
8b37814bd8 updejt 2025-12-11 20:41:00 +01:00
6e998d516d posodobitev 2025-12-11 19:36:08 +01:00
592fed3eb2 PHASE 17: UI Helpers - Button, panel, progress bar, tooltip, notification, checkbox creators 2025-12-11 13:41:39 +01:00
6e2a05c824 PHASE 17: UI Theme - Complete rustic/post-apo color palette, typography, borders, panel templates 2025-12-11 13:39:35 +01:00
e43c1c848b PHASE 20 COMPLETE: Achievement System - auto-tracking, fancy popups, 8 achievements (harvest, gold, kills, days, etc) 2025-12-11 13:34:25 +01:00
c81435a65a PHASE 18 COMPLETE: SaveManager - 3 save slots, auto-save every 5min, export/import, slot metadata 2025-12-11 13:31:01 +01:00
0012998669 PHASE 16: Integration Test Suite - automated tests for all systems (run with runTests()) 2025-12-11 13:28:24 +01:00
96b2636907 PHASE 16: Performance Monitor - FPS tracker with visual graph, memory usage, sprite count (F3 toggle) 2025-12-11 13:26:14 +01:00
1f45429d08 PHASE 15: Antigravity Systems Registry - centralized namespace for all game systems 2025-12-11 13:23:47 +01:00
dae0f1810a DEBUG: Water animation troubleshooting - added debug logs to check tile generation and update loop 2025-12-11 13:18:26 +01:00
ca4e0fc40e FEATURE: Gem Drop System - Diamond, Emerald, Ruby, Sapphire rare drops with rarity chances + sell values 2025-12-11 13:09:49 +01:00
47a170ccb8 FEATURE: Bone Tools crafting recipes - pickaxe, axe, hoe, sword (Bone + Wood) 2025-12-11 13:07:18 +01:00
92c88d5c2d FEATURE: Starter Chest System - seed-based random loot for new game (guaranteed + rare items) 2025-12-11 13:04:38 +01:00
0359509cb0 FINAL CLEAN: Removed damaged walls + signposts - PURE grass platform + water river ONLY 2025-12-11 12:56:45 +01:00
e12fcdf957 ULTRA CLEAN: Removed ALL decorations - no trees, no rocks, no flowers - ONLY grass platform + water river 2025-12-11 12:53:33 +01:00
2216624a63 CLEAN WORLD: Removed ALL terrain elevation - only flat grass platform + water river (no stone/dirt/sand hills) 2025-12-11 12:51:18 +01:00
c9b708e33f REMOVE: City walls and ruins - clean world with only grass platform and water river 2025-12-11 12:47:40 +01:00
ecf81b78a2 FIX: All crash null checks - farm init + roads + water animation ready to test 2025-12-11 12:44:41 +01:00
bad8efd33e WIP: Water animation system - added frame initialization and update loop (debugging in progress) 2025-12-11 12:39:39 +01:00
02fdc702e9 WATER: Added animated isometric water with cyan surface, dark blue cliffs, sparkle points - river system complete 2025-12-11 12:29:29 +01:00
f805603127 teren 2025-12-11 12:08:12 +01:00
b7c9dc7773 FIX: Farm size 100x100, center (50,50), light grey background - Restored 8.DEC version with bug fixes 2025-12-11 11:40:07 +01:00
462516e45d futer 2025-12-08 18:53:18 +01:00
0323a3279b dodadno 2025-12-08 18:25:50 +01:00
3096490a0c dodatki 2025-12-08 17:49:30 +01:00
2c446abbbb npc part nevem 2025-12-08 17:36:26 +01:00
097d35da1b popravki 2025-12-08 17:31:18 +01:00
30eb2d1dc8 posodobitev 2025-12-08 17:17:26 +01:00