You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor map generation logic in map.gd for improved tile management
- Renamed and clarified variable names for better readability, changing `tile_map` to `tile_map_layer` and ensuring proper casting to `TileMap`.
- Enhanced error handling by adding checks for both `TileMap` and `TileMapLayer` references, improving robustness during initialization and client setup.
- Updated tile retrieval and setting logic to consistently use `tile_map_layer`, ensuring accurate tile data handling throughout the map generation process.
- Improved feedback mechanisms by adding error messages for missing tiles and logging during map data synchronization, enhancing debugging capabilities.
- Streamlined the process of clearing and generating tiles, ensuring that existing tiles are properly erased before new ones are set.
These changes collectively enhance the clarity, reliability, and performance of the map generation system.