fix: 勇士原地踏步

This commit is contained in:
AncTe committed 2024-11-22 19:51:03 +08:00
1 parent 0b0d9d2cf5
commit 56365b38df
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -57,7 +57,7 @@ export class HeroKeyMover {
}
private onPressKey = (code: KeyCode) => {
if (core.isReplaying()) return;
if (core.isReplaying() || !core.isPlaying()) return;
core.waitHeroToStop();
if (code === this.hotkeyData.left.key) this.press('left');
else if (code === this.hotkeyData.right.key) this.press('right');
+1 -1
View File
@@ -389,7 +389,7 @@ export class HeroRenderer
render() {
if (!this.renderable) return;
if (!this.animate) {
this.renderable.animate = -1;
this.renderable.animate = 0;
} else {
this.renderable.animate = this.movingFrame;
}