WIP: Water animation system - added frame initialization and update loop (debugging in progress)

This commit is contained in:
2025-12-11 12:39:39 +01:00
parent 02fdc702e9
commit bad8efd33e
3 changed files with 14 additions and 2 deletions

View File

@@ -429,7 +429,7 @@ class TerrainSystem {
// Create Tile Data
this.tiles[y][x] = {
type: terrainType.name,
texture: terrainType.name,
texture: terrainType.name === 'water' ? 'water_frame_0' : terrainType.name, // Water tiles get animated frame!
hasDecoration: false,
hasCrop: false,
solid: terrainType.solid || false