2.2 KiB
2.2 KiB
DEVLOG - 2026-01-27
Time: 08:46:12 Session Goal: Terrain Setup, Atmospheric Layering, and Basic Interaction (Mowing/Camping).
Achievements
1. Asset Organization & Generation
- Created structured folders:
assets/tiles,assets/environment,assets/vegetation,assets/items. - Organized existing assets from
DEMO_FAZA1. - Generated placeholders for missing environment textures (
cesta_svetla.png,voda_umazana.png). - Generated camp items:
campfire.png(Animated visual style),sleeping_bag.png. - Created variations of grass (
trava_zelena,trava_suha,trava_divja) for organic variety.
2. Terrain System ("Sandwich Layering")
Implemented a robust depth-handling system in GrassScene_Clean.js:
- Layer -100: Base Ground (
trava_osnovaat Scale 0.15) for a massive, spacious world feel. - Layer -50: "Decals" (Path, Mud, Ponds). Used
BlendModes.MULTIPLYandsetAlpha(0.8)for mud and paths to naturally blend with the grass texture beneath. - Dynamic Layer: Trees, Kai, and Grass Tufts are strictly Y-Sorted (
depth = y) for correct occlusion.
3. Atmospheric Polish
- Winding Path: Replaced linear paths with a procedural Spline curve generation for organic dirt roads.
- Edge Integration: Programmatically placed small grass tufts along path edges and pond shores to hide sharp texture transitions.
- Amnesia Intro: Implemented a cinematic start with heavy blur and a Typewriter effect text ("Kje sta starša...?").
4. Gameplay Mechanics
- Interaction System:
- Movement: Standard arrow keys.
- Mowing (SPACE): Player can clear specific 'wild' grass tufts to make space. Includes visual "cut" tween.
- Camp Placement (C / V):
- C: Place Campfire.
- V: Place Sleeping Bag.
- Validation: Prevents placement on water, mud, trees, or un-mowed grass. Providing visual feedback (Shake + Text) if placement fails.
- Sinking Effect: Kai visually sinks (Origin Shift 0.9 -> 0.8) and tints darker when walking through mud or water.
Current State
The "Probna Farma" scene is now a fully interactive, atmospheric prototype ready for the Kickstarter demo showcase. The world feels alive, organic, and responsive.
Signed: Antigravity Agent