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:
28
WATER_FIX_SCRIPT.js
Normal file
28
WATER_FIX_SCRIPT.js
Normal file
@@ -0,0 +1,28 @@
|
||||
// EMERGENCY WATER FIX SCRIPT
|
||||
// Run this in browser console (F12) to force refresh water textures
|
||||
|
||||
console.log('🌊 Forcing water texture refresh...');
|
||||
|
||||
// 1. Delete all existing water textures
|
||||
if (game && game.textures) {
|
||||
const textures = ['water', 'water_frame_0', 'water_frame_1', 'water_frame_2', 'water_frame_3'];
|
||||
textures.forEach(key => {
|
||||
if (game.textures.exists(key)) {
|
||||
game.textures.remove(key);
|
||||
console.log(`🗑️ Deleted texture: ${key}`);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 2. Force reload scene
|
||||
if (game && game.scene) {
|
||||
const scene = game.scene.getScene('GameScene');
|
||||
if (scene) {
|
||||
console.log('🔄 Restarting GameScene...');
|
||||
game.scene.stop('GameScene');
|
||||
game.scene.start('GameScene');
|
||||
}
|
||||
}
|
||||
|
||||
console.log('✅ Water refresh complete! Grid lines should be gone.');
|
||||
console.log('💡 If still visible, do HARD REFRESH: Ctrl+Shift+R');
|
||||
Reference in New Issue
Block a user