# 🧭 Tiled Terrain Quick Reference ## Corner-Based Terrain Notation Tiled uporablja **4-corner system** za definiranje terrain transitions. ### Format Notation ``` terrain="TopLeft,TopRight,BottomLeft,BottomRight" ``` Vsaka pozicija ima Ε‘tevilko terrajna (0, 1, 2...) ali je prazna (,) če ni terrain. --- ## πŸ“Š Visual Guide - 3x3 Terrain Pattern ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ TL β”‚ T β”‚ TR β”‚ β”‚ ,,,0 β”‚ ,,0,0 β”‚ ,,0, β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ L β”‚ CENTER β”‚ R β”‚ β”‚ ,0,,0 β”‚ 0,0,0,0 β”‚ 0,,,0 β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ BL β”‚ B β”‚ BR β”‚ β”‚ ,0,, β”‚ 0,0,, β”‚ 0,,, β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ Legend: TL = Top-Left T = Top TR = Top-Right L = Left C = Center R = Right BL = Bottom-Left B = Bottom BR = Bottom-Right ``` --- ## 🎨 Examples: Terrain ID "0" | Tile Type | Terrain Value | Visual | Description | |-----------|---------------|--------|-------------| | **Top-Left Corner** | `,,,0` | `β—£` | Only bottom-right corner belongs to terrain | | **Top Edge** | `,,0,0` | `β–„` | Bottom two corners belong to terrain | | **Top-Right Corner** | `,,0,` | `β—’` | Only bottom-left corner belongs to terrain | | **Left Edge** | `,0,,0` | `▐` | Right two corners belong to terrain | | **Center (FILL)** | `0,0,0,0` | `β–ˆ` | All four corners belong to terrain | | **Right Edge** | `0,,,0` | `β–Œ` | Left two corners belong to terrain | | **Bottom-Left Corner** | `,0,,` | `β—€` | Only top-right corner belongs to terrain | | **Bottom Edge** | `0,0,,` | `β–€` | Top two corners belong to terrain | | **Bottom-Right Corner** | `0,,,` | `β—₯` | Only top-left corner belongs to terrain | --- ## πŸ”€ Inner Corners (Advanced) Za kompleksne oblike potrebujeΕ‘ "inner corners": | Tile Type | Terrain Value | Visual | Description | |-----------|---------------|--------|-------------| | **Inner Top-Left** | `0,,0,0` | Konkaven kot | Missing top-right corner | | **Inner Top-Right** | `0,0,0,` | Konkaven kot | Missing bottom-right corner | | **Inner Bottom-Left** | `,0,0,0` | Konkaven kot | Missing top-left corner | | **Inner Bottom-Right** | `0,0,,0` | Konkaven kot | Missing bottom-left corner | --- ## 🌊 Multi-Terrain Example ### Grass (0) in Dirt (1) ```xml ``` --- ## 🎯 Pro Tips 1. **Empty = Non-terrain**: Prazno (,) pomeni "ta kot ni del terrajna" 2. **Terrain 0 = First**: Prvi terrain je vedno ID 0, drugi je 1, itd. 3. **Symmetry**: Pazi na simetrijo - `,,0,0` (top edge) NI enako kot `0,0,,` (bottom edge) 4. **Testing**: Uporabi Fill Tool v Tiled-u za test terrain transitions --- ## πŸ”§ Wang Sets (Alternative) Za **connected structures** (ograje, cevi): ```xml ``` **Wang ID Format** (Edge-based): ``` wangid="Top,Top,Right,Right,Bottom,Bottom,Left,Left" ``` Vsaka pozicija: `0` = no edge, `1` = edge exists --- ## πŸ“š Learning Path 1. βœ… Začni s preprostimi 3x3 terrain patterns 2. βœ… Preizkusi Terrain Brush v Tiled-u 3. βœ… Dodaj inner corners za kompleksne oblike 4. βœ… Eksperimentiraj z multi-terrain transitions 5. βœ… Preidi na Wang Sets za connected structures --- **Happy Terrain Painting!** 🎨