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
This commit is contained in:
2025-12-14 17:12:40 +01:00
parent c3dd39e1a6
commit 80bddf5d61
37 changed files with 8164 additions and 1800 deletions

View File

@@ -45,19 +45,19 @@ const config = {
height: 768, // 4:3 aspect ratio
parent: 'game-container',
backgroundColor: '#1a1a2e',
pixelArt: true,
antialias: false,
roundPixels: true,
pixelArt: false, // 🎨 SMOOTH 2D (was: true)
antialias: true, // 🎨 SMOOTH edges (was: false)
roundPixels: false, // 🎨 SMOOTH positioning (was: true)
render: {
pixelArt: true,
antialias: false,
roundPixels: true,
pixelArt: false, // 🎨 SMOOTH 2D
antialias: true, // 🎨 SMOOTH edges
roundPixels: false, // 🎨 SMOOTH positioning
transparent: false,
clearBeforeRender: true,
powerPreference: 'high-performance',
premultipliedAlpha: true, // Fix transparency
premultipliedAlpha: true,
failIfMajorPerformanceCaveat: false,
// Eksplicitna NEAREST_NEIGHBOR filtracija
// 🎨 LINEAR filtering for smooth tiles
mipmapFilter: 'NEAREST',
batchSize: 4096
},