feat: Complete Terrain Setup & Camping Mechanics - Devlog 2026-01-27 08:46

This commit is contained in:
2026-01-27 08:46:54 +01:00
parent 51b3b67423
commit 82c992a94b
164 changed files with 596 additions and 9262 deletions

BIN
.DS_Store vendored

Binary file not shown.

40
DEVLOG.md Normal file
View File

@@ -0,0 +1,40 @@
# 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_osnova` at Scale 0.15) for a massive, spacious world feel.
- **Layer -50**: "Decals" (Path, Mud, Ponds). Used `BlendModes.MULTIPLY` and `setAlpha(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*

BIN
assets/.DS_Store vendored

Binary file not shown.

Binary file not shown.

BIN
assets/characters/kai.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 776 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 303 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 859 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
assets/items/campfire.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 523 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

BIN
assets/kai.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 776 KiB

0
assets/references/.DS_Store vendored Normal file → Executable file
View File

0
assets/references/GAME_DESIGN_NOTES.md Normal file → Executable file
View File

0
assets/references/PROMPTS_LIST.md Normal file → Executable file
View File

0
assets/references/Switch:Lever.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View File

Before

Width:  |  Height:  |  Size: 104 KiB

After

Width:  |  Height:  |  Size: 104 KiB

0
assets/references/agregat_1_pokvarjen.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 93 KiB

After

Width:  |  Height:  |  Size: 93 KiB

0
assets/references/agregat_2_delujoc.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 93 KiB

After

Width:  |  Height:  |  Size: 93 KiB

0
assets/references/ana.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 59 KiB

After

Width:  |  Height:  |  Size: 59 KiB

0
assets/references/ata.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 64 KiB

0
assets/references/baker_ikona.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

0
assets/references/bencin_kanta.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB

0
assets/references/bio_gorivo_proizvodnja.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 86 KiB

0
assets/references/cebelnjak_orodje_set.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 45 KiB

0
assets/references/corn_grow_sheet.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 73 KiB

0
assets/references/cvetenje_marihuane.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 71 KiB

0
assets/references/delovna_miza.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 75 KiB

After

Width:  |  Height:  |  Size: 75 KiB

0
assets/references/dr_krnic.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 98 KiB

After

Width:  |  Height:  |  Size: 98 KiB

0
assets/references/drevesce.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

0
assets/references/drevo_faza_1.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 49 KiB

0
assets/references/drevo_faza_2.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 61 KiB

0
assets/references/drevo_majhno.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 47 KiB

0
assets/references/drevo_srednje.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 68 KiB

0
assets/references/drevo_veliko.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 146 KiB

After

Width:  |  Height:  |  Size: 146 KiB

0
assets/references/druzina_portret.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 87 KiB

0
assets/references/duh_mame_plav.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

0
assets/references/gronk_susi.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 324 KiB

After

Width:  |  Height:  |  Size: 324 KiB

0
assets/references/ikone_rude.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

0
assets/references/insekti_dezevnik_polz_mravlja.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

0
assets/references/insekti_komar_muha.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

0
assets/references/insekti_matica_dezevnik_polz_set.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

0
assets/references/insekti_metulji_set.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

0
assets/references/insekti_posebni_set.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

0
assets/references/insekti_travnik_set.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

0
assets/references/insekti_zima_set.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

0
assets/references/item_zica_kolut.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

0
assets/references/kaj.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 82 KiB

0
assets/references/kamen_majhen.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

0
assets/references/kamen_srednji.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

0
assets/references/koca_lesena.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 84 KiB

0
assets/references/kopica_premoga.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 55 KiB

0
assets/references/kosa_orozje.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

0
assets/references/kovinska_resetka.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

0
assets/references/kup_smeti_guma_konzerve.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 45 KiB

0
assets/references/lestev_lesena.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 66 KiB

0
assets/references/mala_koca.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 153 KiB

After

Width:  |  Height:  |  Size: 153 KiB

0
assets/references/mama.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 73 KiB

0
assets/references/megla_ozadje.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 49 KiB

0
assets/references/mladika_ikona.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

0
assets/references/motorna_kosa.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

0
assets/references/nacrti_zvitki.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 70 KiB

0
assets/references/nagrada_kip_200_dni.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 49 KiB

0
assets/references/netopir.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 49 KiB

0
assets/references/objekt_cevi_in_kabli_set.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 240 KiB

After

Width:  |  Height:  |  Size: 240 KiB

View File

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 71 KiB

0
assets/references/objekt_gnoj_kompost_kup.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 142 KiB

After

Width:  |  Height:  |  Size: 142 KiB

0
assets/references/objekt_grob_odprt_zombi_postelja.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 200 KiB

After

Width:  |  Height:  |  Size: 200 KiB

0
assets/references/objekt_kompostnik_lesen.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 357 KiB

After

Width:  |  Height:  |  Size: 357 KiB

0
assets/references/objekt_kontejner_smeti.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 311 KiB

After

Width:  |  Height:  |  Size: 311 KiB

0
assets/references/objekt_strasilo_creepy.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 300 KiB

After

Width:  |  Height:  |  Size: 300 KiB

0
assets/references/okna_vrata_tileset.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

View File

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 37 KiB

0
assets/references/orodje_kramp_lopata.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

0
assets/references/potato_grow_sheet.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 55 KiB

0
assets/references/predelovalni_stroji.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

0
assets/references/predmeti_terariji_in_kace_set.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 80 KiB

0
assets/references/premog_ikona.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB

0
assets/references/proizvodnja_sena.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 84 KiB

0
assets/references/rast_marihuane.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 53 KiB

View File

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 73 KiB

0
assets/references/resource_mivka_in_potok_tile.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 65 KiB

0
assets/references/rudnik_rov.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 151 KiB

After

Width:  |  Height:  |  Size: 151 KiB

0
assets/references/rudnik_vhod_dolina_smrti.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 322 KiB

After

Width:  |  Height:  |  Size: 322 KiB

0
assets/references/seed_packet_cannabis.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 51 KiB

0
assets/references/seme_kalcek.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

0
assets/references/sencna_posast.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

0
assets/references/sistem_za_vodo.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 70 KiB

0
assets/references/skedenj.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 139 KiB

After

Width:  |  Height:  |  Size: 139 KiB

0
assets/references/soba_z_rastlinami.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 82 KiB

0
assets/references/sod_izometricen.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 124 KiB

After

Width:  |  Height:  |  Size: 124 KiB

0
assets/references/soncnice_faze_rasti.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 68 KiB

0
assets/references/sotor_zaprt.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 145 KiB

After

Width:  |  Height:  |  Size: 145 KiB

0
assets/references/sova.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 52 KiB

0
assets/references/spalna_vreca.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 47 KiB

0
assets/references/spomini_otrostva.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

0
assets/references/stara_fotografija.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 74 KiB

0
assets/references/stor.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 53 KiB

0
assets/references/structure_workshop_garage.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 235 KiB

After

Width:  |  Height:  |  Size: 235 KiB

0
assets/references/suho_drevo.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 104 KiB

After

Width:  |  Height:  |  Size: 104 KiB

Some files were not shown because too many files have changed in this diff Show More