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
This commit is contained in:
64
FAZA_10_CHECKLIST.md
Normal file
64
FAZA_10_CHECKLIST.md
Normal file
@@ -0,0 +1,64 @@
|
||||
# FAZA 10: Ekonomija in Trgovina - Checklist
|
||||
|
||||
**Status:** ✅ ZAKLJUČENO
|
||||
|
||||
**Datum:** 2025-12-06
|
||||
|
||||
---
|
||||
|
||||
## ✅ Opravila (Developer)
|
||||
|
||||
- [x] Implementacija `InventorySystem` (Gold Tracking):
|
||||
- [x] Shranjevanje zlata (Gold).
|
||||
- [x] UI prikaz zlata (desno zgoraj).
|
||||
- [x] NPC Interakcija (`InteractionSystem.js`):
|
||||
- [x] Detekcija klika na NPC-ja (povečan radij).
|
||||
- [x] Identifikacija 'merchant' tipa.
|
||||
- [x] Trgovina Logika:
|
||||
- [x] Prodaja: Wheat -> Gold (5g/item).
|
||||
- [x] Nakup: Gold -> Seeds (10g/5 items).
|
||||
- [x] Visual feedback (+Gold/-Gold text popup).
|
||||
- [x] Integracija v GameScene.
|
||||
|
||||
---
|
||||
|
||||
## 🧪 Ročno testiranje (Naročnik)
|
||||
|
||||
### Test 1: Prodaja
|
||||
**Ukaz:** Imej pridelke (Wheat) in klikni na NPC-ja (Merchanta).
|
||||
|
||||
**Pričakovani rezultat:**
|
||||
- [x] Zlato se poveča (+5 na item).
|
||||
- [x] Pridelki izginejo iz inventarja.
|
||||
|
||||
### Test 2: Nakup
|
||||
**Ukaz:** Bodi brez pšenice, imej zlato (>10) in klikni na NPC-ja.
|
||||
|
||||
**Pričakovani rezultat:**
|
||||
- [x] Zlato se zmanjša (-10).
|
||||
- [x] Število semen v inventarju se poveča (+5).
|
||||
|
||||
---
|
||||
|
||||
## 📋 Potrditev Naročnika
|
||||
|
||||
```
|
||||
FAZA 10: [STATUS]
|
||||
- Testirano: [DA]
|
||||
- Datum testiranja: 2025-12-06
|
||||
- Opombe: Uporabnik potrdil: "dela"
|
||||
|
||||
ODOBRENO ZA FAZO 11: [DA]
|
||||
|
||||
Podpis naročnika: User
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## ➡️ Naslednji koraki (po odobritvi)
|
||||
|
||||
Ko naročnik potrdi FAZO 10, se začne:
|
||||
**FAZA 11: Gradnja in Obnova (Building)**
|
||||
- Poraba materialov (Wood, Stone, Gold) za gradnjo.
|
||||
- Postavljanje objektov na mrežo (npr. Ograja, Hiša).
|
||||
- UI za izbiro gradnje.
|
||||
Reference in New Issue
Block a user