mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-02-28 17:37:07 +08:00
fix: 勇士原地踏步
This commit is contained in:
parent
0b0d9d2cf5
commit
56365b38df
@ -57,7 +57,7 @@ export class HeroKeyMover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private onPressKey = (code: KeyCode) => {
|
private onPressKey = (code: KeyCode) => {
|
||||||
if (core.isReplaying()) return;
|
if (core.isReplaying() || !core.isPlaying()) return;
|
||||||
core.waitHeroToStop();
|
core.waitHeroToStop();
|
||||||
if (code === this.hotkeyData.left.key) this.press('left');
|
if (code === this.hotkeyData.left.key) this.press('left');
|
||||||
else if (code === this.hotkeyData.right.key) this.press('right');
|
else if (code === this.hotkeyData.right.key) this.press('right');
|
||||||
|
@ -389,7 +389,7 @@ export class HeroRenderer
|
|||||||
render() {
|
render() {
|
||||||
if (!this.renderable) return;
|
if (!this.renderable) return;
|
||||||
if (!this.animate) {
|
if (!this.animate) {
|
||||||
this.renderable.animate = -1;
|
this.renderable.animate = 0;
|
||||||
} else {
|
} else {
|
||||||
this.renderable.animate = this.movingFrame;
|
this.renderable.animate = this.movingFrame;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user