文档:技能中的错误/《像素艺术指南》(v4.2.1)
作者: ais4ocho创建于 2026年9月25日更新于 2026年9月25日
skills/animations/SKILL.md、 "Per-Frame Duration" (第 247 行) 和陷阱 4 (第 459 行): 每帧的duration被描述为 "添加到基础 msPerFrame" 和 "累加"。自 3.80 (#6712) 起,它就替换了该帧的 msPerFrame。src/animations/Animation.js中的getFirstTick和getNextTick使用state.frameRate === state.currentAnim.frameRate ? state.currentFrame.duration || state.msPerFrame : state.msPerFrame。此外,当play()传递与动画自身不同的frameRate时,也会被忽略。运行时: 以 10 fps 的速度,具有duration: 500的帧将持续 500 ms,而不是 600 ms。
内容来源: phaserjs/phaser