feat(renderer/map): 支持 DT1 动态动画瓦片(Animated Tiles)循环播放 #43
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的城镇与固定地图中,包含大量动态水面波纹、燃烧的火把与火盆、翻滚的岩浆、喷泉等动态地貌。
当前
src/game/d2map.ts和离线烘焙管线中,仅将 DT1 瓦片提取为单帧静态的SpriteFrame并合入纹理图集。游戏运行时,场景中的水体、火把、岩浆等呈现完全静止的状态。暗黑2原版逻辑(Oracle / Ground Truth)
style:sequence下具有多个帧(Frame),且瓦片的RarityFrameIndex带有动画标记及帧延迟配置。解决建议与改造方案
src/formats/dt1.ts中解析多帧瓦片的动画序列属性及帧切换速率。src/render/renderer.ts与着色器中支持按游戏 Tick 推进瓦片帧索引,或利用 GPU Uniform / 纹理数组动态循环播放动画瓦片。已在分支
fix/issue-43中真实修复并验证通过。Commit:
c56b808验证项:
tests/animated-tiles.test.ts)npx tsc --noEmit)npm run build)