Fix Biome System integration, memory optimization, and Tiled live sync workflow
This commit is contained in:
@@ -140,7 +140,7 @@ class MapRevealSystem {
|
||||
const screenY = (y - startY) * this.minimapScale;
|
||||
|
||||
// Get biome color
|
||||
const biome = this.scene.biomeSystem ? this.scene.biomeSystem.getBiome(x, y) : 'Grassland';
|
||||
const biome = this.scene.biomeSystem ? this.scene.biomeSystem.getBiomeAt(x, y) : 'Grassland';
|
||||
const color = this.getBiomeMinimapColor(biome);
|
||||
|
||||
this.minimap.texture.fill(color, 1, screenX, screenY, this.minimapScale, this.minimapScale);
|
||||
@@ -223,7 +223,7 @@ class MapRevealSystem {
|
||||
for (let x = 0; x < 500; x += 5) {
|
||||
if (!this.revealed[y] || !this.revealed[y][x]) continue;
|
||||
|
||||
const biome = this.scene.biomeSystem ? this.scene.biomeSystem.getBiome(x, y) : 'Grassland';
|
||||
const biome = this.scene.biomeSystem ? this.scene.biomeSystem.getBiomeAt(x, y) : 'Grassland';
|
||||
const color = this.getBiomeMinimapColor(biome);
|
||||
|
||||
this.fullMapTexture.fill(color, 1, x * scale, y * scale, scale * 5, scale * 5);
|
||||
|
||||
Reference in New Issue
Block a user