feat(wilderness): 实现相邻野外关卡接缝空间对齐与出入口坐标咬合 #69
Labels
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: troytt/diablo2-web#69
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
背景
在原版暗黑 2 中,同一幕内的所有室外野外关卡并非完全独立的离散空间(由
Levels.txt的OffsetX/OffsetY = -1明确指出):而当前 Web 引擎中:
level-links.ts中的接缝传送触发盒(seamArrivalSpot)强制瞬移来“掩盖”这种物理错位。一旦角色跨过接缝,常常产生视觉上的突兀跳跃与道路断裂。改造内容
WildernessRequest)中传递相邻已生成关卡的开口坐标约束。验收标准
tests/level-links.test.ts、tests/world-graph.test.ts)全部通过npm run typecheck零错误,npx vitest run全绿