mirror of
https://github.com/cliffe/BreakEscape.git
synced 2026-02-21 19:28:03 +00:00
- Export calculateDoorPositionsForRoom from doors.js for reuse - Import and use shared function in collision.js - Remove duplicate door positioning logic (130+ lines) - Ensures perfect alignment between door sprites and wall tile removal - Both systems now use identical door placement calculations This eliminates code duplication and guarantees that wall tiles are removed at exactly the same positions where door sprites are created.