Commit Graph

9 Commits

Author SHA1 Message Date
177d05e942 feat(v0.97): Weather system, Master Clock save/load, Lang fix, Golden Statue 200d achievement
## 🌧️ WEATHER SYSTEM
- DayNightSystem: weather changes every morning at 06:00
- 30% chance of rain, calculated 1 day ahead
- Procedural rain visuals tied to actual weather state
- Radio [E] near tent shows tomorrow's forecast (Dark-Chibi Noir UI)

## 💧 WATER & FARMING
- WaterSystem: Rain Catcher capacity increased to 50L
- Auto-fill to 50L on rain days
- Auto-water all soilSlots on rain, auto-dry on sunny days

## 🌍 LOCALIZATION FIX
- Language button now switches instantly (no scene.restart() crash)
- All menu text (subtitle, tagline, settings) translates live
- localization.json: added menu_subtitle, menu_tagline, settings_info, settings_close for all 5 langs
- Settings button now opens real pop-up menu

## 🏆 GOLDEN STATUE (200 DAYS)
- _showAchievement() + _spawnGoldenStatue() methods
- Statue uses correct 2.5D physics: setOrigin(0.5,1.0), setDepth(y), collider
- _statueSpawned flag prevents duplicate spawns
- Post-load check: statue appears if save file has day >= 200

## 🗓️ MASTER CLOCK
- DayNightSystem: saveState()/loadState() via localStorage (key: nova_farma_time_save)
- Saves: day, year, hour, minute, todayWeather, tomorrowWeather
- Auto-save every in-game minute + on midnight + on sleep
- Year system: year increments every 120 days (Aging System hook)
- yearChanged event wired to UIScene + GrassScene

## 📊 HUD UPGRADE
- UIScene: yearText element (LETO 1) below dayText
- dayText uses i18n key, turns orange at day 190+ (pre-statue warning)
- gameState.year added

Build: v0.97 ALPHA - Master Clock Edition
2026-04-27 00:00:53 +02:00
188bd769cf 🔥 FAZE SPRINT 1-3 COMPLETION: DayNight, Inventory, Core Farming System, Mrtvi Zombiji (ShamblerAI & Alfa Moć Taming), Sredili assets & daily UI 2026-03-03 17:46:41 +01:00
35153eeacf docs: dev log 2026-03-02 (dež + BuildingSystem) 2026-03-02 20:43:37 +01:00
1d7aaf9562 💾 Morning Session Complete - Pixel-Perfect + Auto-Loaders
SESSION DATE: 11. Februar 2026, 06:27 - 10:05
DURATION: ~3.5 hours
FOCUS: Pixel-perfect scale system + Auto-loaders

 IMPLEMENTED SYSTEMS:

1. PIXEL-PERFECT SCALE (06:30):
   - Base tile: 32x32 px reference
   - Kai: 64 px height (2 tiles) - FORCED
   - Tall grass: 28 px height - FORCED
   - Oak tree: 160 px height - FORCED
   - Ratio: Kai 2.3x taller than grass ✓

2. VEGETATION GROUNDING (06:35):
   - All plants: setOrigin(0.5, 1.0) bottom-center
   - ROOT_OFFSET: 6px burial into ground
   - Y-depth sorting: setDepth(this.y) for all
   - Result: NO FLOATING! Plants grow from ground!

3. AUTO-LOADER SYSTEM (06:44):
   - loadVegetation(): 28px target, 4px burial
   - loadTree(): 160px target, 8px burial
   - Auto-scale calculation: target/source
   - SMOOTH rendering: LINEAR filter
   - NO manual setup needed!

4. TEST OBJECTS:
   - Test grass: Left of Kai (28px, 4px burial)
   - Test oak: Right of Kai (160px, 8px burial)
   - Both demonstrate perfect grounding

TECHNICAL CHANGES:
- Kai origin: 0.5, 0.9 → 0.5, 1.0
- Kai scale: 1.0 → 0.25 (64px exact)
- Vegetation re-enabled with grounding
- Rain system active

FILES MODIFIED:
- src/scenes/GrassScene_Clean.js (major refactor)
- dokumentacija/TODO_NEXT_SESSION.md (created)

COMMITS THIS SESSION: 3
1. Pixel-perfect scale constants
2. Vegetation grounding system
3. Auto-loader implementation

Status: All systems working, ready for testing!

Date: 11. Februar 2026, 10:05
2026-02-11 10:05:36 +01:00
d3a93b6e7b 🎉 SESSION COMPLETE - Final Save
FINAL SESSION COMMIT:
Date: 2026-02-11 00:17
Duration: 6+ hours
Assets: 23 generated

ALL FILES SAVED:
 23 asset files (Characters + Environment + References)
 Rain system code (GrassScene_Clean.js)
 Documentation (MASTER_GAME_BIBLE.md)
 Diary (MASTER_DNEVNIK)
 Removed old vegetation assets

PROGRESS: 14.4% (23/160)

NEXT SESSION:
- Kai death animation
- Kai tool animations
- Batch 4: Polaroid intro

Session End: 2026-02-11 00:17
Everything saved and committed! ��
2026-02-11 00:17:17 +01:00
2255bb7d41 🌱 Expanded Island + Procedural Growth System
ISLAND EXPANSION:
- Increased from 20x20 to 50x50 tiles (6400x6400px)
- World size: 10400x10400px (with ocean buffer)
- Irregular edges (procedural jitter system maintained)

PROCEDURAL GROWTH SYSTEM:
- Soil moisture grid (50x50) - tracks wet/dry tiles
- Grass growth: 30% chance if soil is wet
- Tree saplings: 10 placed on island edges
- Tree aging: sapling → medium (3 days) → large (7 days)
- Rainfall: 40% chance daily, wets 60% of tiles

LAYER SYSTEM (Z-ORDER FIX):
- LAYER_GROUND (-100): Foundation tiles
- LAYER_VEGETATION (1): Grass, bushes - below characters!
- LAYER_TREES (2): Trees
- LAYER_CHARACTERS (10): Kai, zombies - walks BETWEEN vegetation

GROWTH MECHANICS:
- Morning check every 60 seconds (1 in-game day)
- Grass fades in smoothly (2s animation)
- Trees progress: faza_1 → faza_2 → veliko
- Random grass types & sizes for variety

NATURE TAKES OVER:
- Island evolves procedurally over time
- Dark Gothic aesthetic maintained
- Living, breathing environment

Date: 2026-02-10 17:42
2026-02-10 17:41:58 +01:00
7b8194caca Asset Analysis Complete + Generation Plan 2026-02-10 17:27:01 +01:00
e49a61eb88 style 32 vegetation overhaul: 3-stage growth, real-farm mechanics, occlusion, and critical crash fixes 2026-02-10 11:40:00 +01:00
2669a435eb docs: clean start 30.1.2026 - updated master diary and bible, renamed project 2026-01-30 21:03:47 +01:00