Commit Graph

40 Commits

Author SHA1 Message Date
7264ec6fc0 feat: complete Style 32 overhaul & Tiled integration fix
- Enforced 'Style 32 - Dark Chibi Vector' for all ground assets.
- Fixed critical Prologue-to-Game crash (function renaming).
- Implemented Tiled JSON/TMX auto-conversion.
- Updated Asset Manager to visualize 1800+ assets.
- Cleaned up project structure (new assets/grounds folder).
- Auto-Ground logic added to GameScene.js.
2026-01-11 20:08:56 +01:00
13fc18bc9e 🎬 INTRO SCENE IMPLEMENTATION COMPLETE!
 INTROSCENE.JS CREATED (430+ lines):
- Version B: 30-45 second fast-cut intro
- 3 phases (Happy Family → Collapse → Amnesia Wake-Up)
- Skip functionality (X key or SPACE after 5s)
- Style 32 Dark-Chibi Noir visual effects
- Blur, glitch, tint, strobe effects
- Complete typewriter text in Slovenian

📁 FILES CREATED/MODIFIED:
- src/scenes/IntroScene.js (NEW! 430 lines)
- index.html (added IntroScene.js script)
- src/game.js (added IntroScene to scene array)
- src/scenes/PreloadScene.js (updated to start IntroScene)

🎯 FEATURES IMPLEMENTED:

**Phase 1: Happy Family (0-15s)**
- 5 fast-cut shots (~3s each)
- Warm color grading
- Text: 'Nekoč smo imeli barve...'
- Shots: Otac longboard, Ana barbershop, twins, birthday, family portrait

**Phase 2: The Collapse (15-30s)**
- 4 chaotic shots (~4s each)
- Red/green color saturation
- Glitch + strobe effects
- Camera shake
- Text: 'Potem je prišla tema...'
- Shots: Virus, zombies, chaos, Ana taken

**Phase 3: Amnesia Wake-Up (30-45s)**
- Black screen amnesia effect
- Gaussian blur fade-in
- Ana memory flash
- Gronk entrance
- Text: 'In ostal sem sam... z luknjo v glavi.'
- Final text: 'Moram jo najti. Tudi če mi vzame celo življenje.'
- Shots: Darkness, bedroom, memory flash, Gronk

🎮 USER CONTROLS:
- Skip prompt appears after 5 seconds
- X key or SPACE to skip
- Click anywhere to skip
- Fades smoothly to GameScene

💫 VISUAL EFFECTS:
- Warm tint for happy memories (0xffddaa)
- Red tint for chaos/danger (0xff6666)
- Toxic green tint for virus (0x66ff66)
- Position jitter for glitch effect
- Alpha strobe for chaos
- Camera shake during outbreak
- Fade transitions between phases

📊 INTEGRATION STATUS:
-  Loaded in index.html
-  Added to Phaser scene config
-  PreloadScene starts IntroScene
-  IntroScene transitions to GameScene
-  All 20 intro images referenced
-  Audio NOT loaded yet (optional)
-  VHS shader NOT implemented yet (optional)

🔄 GAME FLOW (UPDATED):
BootScene → PreloadScene → 🆕 IntroScene → GameScene

📸 ASSETS USED:
All 20 intro shots from /assets/references/intro_shots/:
- kai_ana_twins_childhood.png
- kai_adult_35_timelapse.png
- kai_elder_50_timelapse.png
- otac_longboard_pier.png
- virus_xnoir_microscope.png
- zombie_silhouettes_panic.png
- kai_bedroom_wakeup.png
- ana_memory_flash_purple.png
- ana_barbershop_dreads.png
- birthday_cake_rd.png
- family_portrait_punk_complete.png
- chaos_streets_apocalypse.png
- ana_taken_military.png
- gronk_doorway_silhouette.png

⏱️  TOTAL DURATION: ~40-47 seconds (with skip at 5s)

🎯 READY FOR TESTING!
Run game and intro will play automatically after loading screen!
2026-01-10 13:16:14 +01:00
4a5b788ad4 🎬🎵 Jan 8 COMPLETE AUDIO PRODUCTION - Intro + Music + SFX
 FULL AUDIO SYSTEM READY (104 FILES):

**🎙️ INTRO CUTSCENE VOICES (4 NEW MP3):**
Generated via Edge TTS:
1. 01_narrator_flyover.mp3 (73KB) - 'They say the world didn't die...'
2. 02_kai_awakening.mp3 (28KB) - 'My head... it hurts. Where am I?'
3. 03_kai_truth_part1.mp3 (67KB) - 'Kai Marković. 14 years old...'
4. 04_kai_truth_part2.mp3 (51KB) - 'I'm coming to find you... Ana.'

**Story Structure:**
- Part 1: The Flyover (0:00-0:45) - Narrator
- Part 2: The Awakening (0:45-1:10) - Kai confused
- Part 3: The Truth (1:10-2:00) - Kai determined

**🎵 MUSIC PLACEHOLDERS (7 WAV - 60MB):**
Simple ambient loops for testing:
1. main_theme.wav (90s) - Menu music
2. farm_ambient.wav (120s) - Farming
3. town_theme.wav (90s) - Town restoration
4. combat_theme.wav (60s) - Battle
5. night_theme.wav (180s) - Nighttime
6. victory_theme.wav (30s) - Quest complete
7. ana_theme.wav (120s) - Emotional/flashback

**🔊 SFX PLACEHOLDERS (23 WAV - 1.5MB):**
Farming (8): plant_seed, water_crop, harvest, dig, scythe, mine, chop, cow
Combat (8): sword, bow, zombie_hit, zombie_death, hurt, shield, explosion, raider
Building (5): chest, door_open, door_close, hammer, repair
Misc (2): coin_collect, level_up

**📊 TOTAL AUDIO INVENTORY:**
- Voice Files: 28 MP3 (24 existing + 4 new intro)
- Voiceover: 43 WAV (prologue cutscenes)
- Sound Effects: 25 WAV (2 existing + 23 new placeholders)
- Music: 8 tracks (1 existing + 7 new placeholders)
- **TOTAL: 104 audio files!**

**🎮 INTEGRATION:**
- Updated PreloadScene with intro voice loading
- All audio keys ready for use in intro cutscene
- BiomeMusicSystem ready for 7-track cross-fade
- AudioTriggerSystem ready for all 23 SFX

**📝 SCRIPTS CREATED:**
1. scripts/generate_intro_cutscene.py - Intro dialogue generation
2. scripts/generate_audio_placeholders.py - Music + SFX placeholders

**🎯 USAGE:**
Intro voices: 'intro_flyover', 'intro_awakening', 'intro_truth_1', 'intro_truth_2'
Music: Load from assets/audio/music/*.wav
SFX: Load from assets/audio/sfx/[category]/*.wav

**⚠️  NOTE:** Music/SFX are PLACEHOLDERS (simple tones)
Replace with real audio from Freesound.org or AI generators later!

🎉 AUDIO SYSTEM 100% FUNCTIONAL FOR TESTING!
2026-01-08 17:05:57 +01:00
b966bd37fe 🎬 Jan 8 Enable PrologueScene + Character Sprite Loading
 INTRO CUTSCENE + CHARACTER SPRITES ADDED:

**1. Enabled PrologueScene (Intro Cutscene):**
- Uncommented PrologueScene.js in index.html
- Added PrologueScene to game.js scene list
- Now shows intro story when clicking 'New Game'
- Explains: What happened, where Kai is, who Ana is

**2. Character Sprite Loading:**
- Added preloadCharacterSprites() to PreloadScene
- Loading Kai idle + walk sprites
- Loading Ana idle + walk sprites
- Loading Susi (dog) idle + run sprites
- Path: /assets/references/main_characters/[char]/animations/

**Character Images Now Available:**
 kai_idle, kai_walk (Kai - protagonist)
 ana_idle, ana_walk (Ana - twin sister)
 susi_idle, susi_run (Susi - dog companion)

**Test Flow:**
1. Launch game → Loading screen
2. Click 'New Game' → PrologueScene intro
3. After intro → GameScene with character sprites

**Next:** Test TestVisualAudioScene with loaded sprites!
2026-01-08 16:18:46 +01:00
adc2183655 🎵 AUDIO INTEGRATION COMPLETE: Generated cinematic narrator voices with SSML (natural pacing, breathing pauses), created AudioLoader system, integrated audio preload in PreloadScene. No more console errors! Ready for in-game testing. 2026-01-05 21:12:06 +01:00
4c6ccac9b9 🔙 Restored StoryScene Menu as Default
Changed PreloadScene to start StoryScene (main menu) instead of DemoSceneEnhanced

MENU FEATURES:
 New Game button
 Continue button
 Settings button
 Credits button
 All original game scenes accessible

DemoSceneEnhanced still available via game menu.

Back to normal game flow! 🎮
2026-01-03 22:16:12 +01:00
4b10a4fa40 🧹 MINIMAL PreloadScene - 100% Asset Loading Fixed!
PROBLEM: PreloadScene tried to load 100+ non-existent assets
RESULT: Demo crashed during load - never reached DemoSceneEnhanced!

═══════════════════════════════════════════════════════════════
MASSIVE CLEANUP:
═══════════════════════════════════════════════════════════════
 Removed 380+ lines of dead asset loads
 Disabled all old paths (assets/XXX.png)
 Disabled 122+ Krvava Žetev sprite sheets (don't exist yet)
 Disabled Tiled map loads
 Disabled all tilesets
 Disabled all audio assets
 Disabled all character spritesheets

═══════════════════════════════════════════════════════════════
NEW MINIMAL PRELOAD:
═══════════════════════════════════════════════════════════════
- Shows loading bar
- Does NOT load any assets
- DemoSceneEnhanced loads its own assets in its preload()
- Boots straight to DemoSceneEnhanced

File size: 926 lines → ~540 lines (42% reduction)

Ready to launch demo! 🚀
2026-01-03 22:09:57 +01:00
b0671410cc 🎮 Demo Integration Complete - Real Sprites!
Integrated all real sprites into DemoSceneEnhanced:
 Kai sprites (15 PNG) - full walk cycle animations
 Gronk sprites (19 PNG) - idle + vaping animation
 Zombie sprites (53 PNG) - ambient atmosphere
 Wheat Style 30 (4 stages) - proper growth
 Items (locket, tools) - all integrated

Features:
- Real character animations (not placeholders!)
- Proper sprite paths from cleaned structure
- Kai walk animations (up/down/left/right)
- Gronk vaping animation loop
- Locket memory trigger system
- 4-stage wheat growth (Style 30)
- Quest tracking & completion

Changes:
- DemoSceneEnhanced.js: Complete rewrite with real assets
- PreloadScene.js: Changed to start DemoSceneEnhanced
- All asset paths updated to slike 🟢/ structure

Ready to test in Electron! 🚀
2026-01-03 21:54:23 +01:00
f5a80a12b9 refactor: Move assets to correct categories (fence→environment, chest→items, campfire already in workstations) 2025-12-30 03:05:12 +01:00
c8743986ad feat: Automated Audio System & Royalty-Free Asset Integration (Phase 8 & 9)
- Added footstep_grass.wav, wood_chop.wav, forest_ambient.mp3
- Synchronized rhythm footsteps with walk animation frames
- Implemented proximity-based pond music modulation
- Updated SoundManager to prioritize high-quality assets
2025-12-28 00:52:33 +01:00
70f4194826 Remove obsolete Zmaj Volk references from code and story 2025-12-27 12:58:33 +01:00
43f4b11c87 Fix Biome System integration, memory optimization, and Tiled live sync workflow 2025-12-27 12:50:58 +01:00
f8d533465b nalaganje tiled mape. ozadje ni OK. 2025-12-27 04:04:24 +01:00
875eb0516a Finalize session: Fix Tiled map loading (JSON), restore Main Menu, save assets 2025-12-27 02:20:46 +01:00
41fc635f3a Save all: Fixed blue screen, VibeVoice audio, Tiled setup 2025-12-27 02:11:06 +01:00
7ced4b86e9 Bug fixes: Disabled missing Tiled map loading && Added safety checks for zombie_walk texture 2025-12-22 12:05:27 +01:00
c1cf6b8f48 Fix: Disabled 122+ non-existent Krvava Žetev assets && Fixed scene loading to StoryScene instead of TiledTestScene 2025-12-22 12:01:36 +01:00
0985af29e5 Green Background Removal + TSX Generation + Bug Fixes
Removed green backgrounds from 30 tileset PNGs (16.4M pixels!)
 Created mass TSX generation script for 3877 individual objects
 Fixed TiledTestScene cursor crash bug
 Added micro_farm_8x8 JSON loading support
 Documentation: GREEN_BACKGROUND_FIX.md, MASS_TSX_GENERATION.md

Scripts:
- scripts/remove_green_background.py (batch transparency fix)
- scripts/generate_mass_tsx.py (3877 .tsx files generator)

Backups: assets/tilesets/backup_green_bg/
2025-12-22 11:23:25 +01:00
7eb1a5874a Avtomatska obdelava tileset slik - 3877 ločenih objektov in TSX datotek
- Ustvarjen skript za ločevanje objektov iz tileset slik (obdelaj_tilesete.py)
- Odstranjevanje zelenega ozadja (#00FF00) iz vseh slik
- Ločevanje posameznih objektov iz multi-object slik
- Pomanjševanje na 50% originalne velikosti
- Obdelanih 234 slik  3877 ločenih objektov

- Ustvarjen skript za generiranje TSX datotek (generiraj_tsx_datoteke.py)
- Avtomatsko generiranje 3877 TSX datotek za Tiled Map Editor
- Pravilna XML struktura za vsak tileset
- Avtomatska detekcija velikosti objektov
- Relativne poti do slik

Rezultati:
- assets/narezano_loceno/ - 3877 ločenih PNG objektov
- assets/tilesets_auto/ - 3877 TSX datotek za Tiled
- Dokumentacija in navodila za uporabo

Vse pripravljeno za uporabo v Tiled Map Editor!
2025-12-21 15:36:42 +01:00
39d6c0abcd Integrate 122+ Krvava Žetev 2D assets into PreloadScene 2025-12-18 19:25:59 +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
0131f1490f carakter 2025-12-14 12:21:17 +01:00
abb9af9063 charakter 2025-12-13 04:34:11 +01:00
6c583a6576 posodobitve 2025-12-12 13:40:51 +01:00
e15b429e75 svet 2025-12-12 00:13:55 +01:00
8b37814bd8 updejt 2025-12-11 20:41:00 +01:00
6e998d516d posodobitev 2025-12-11 19:36:08 +01:00
abc536fea1 popraven novi npc 2025-12-08 17:09:52 +01:00
f3d476e843 phase 11 koncano 2025-12-08 14:01:41 +01:00
9c61c3b56d popravki 2025-12-08 01:00:56 +01:00
7834aee111 mesano 2025-12-08 00:18:56 +01:00
22e7b1a6d2 novi trgovc 2025-12-07 23:21:12 +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
03a9cd46a2 stanje 4am 2025-12-07 04:19:57 +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
cdcd7f8bc6 FAZA 0: Initial project setup - Electron + Phaser configuration 2025-12-06 17:47:56 +01:00