29 lines
915 B
JavaScript
29 lines
915 B
JavaScript
// 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');
|