Skip to content

Commit 2f7ce6b

Browse files
committed
fix: jump
1 parent 55e1e88 commit 2f7ce6b

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

model/character.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -206,21 +206,21 @@ class CharacterJumpMove implements MoveBase {
206206
step() {
207207
this.#phase += 1
208208
if (this.#phase <= 2) {
209-
this.#y += 6
209+
this.#y -= 6
210210
} else if (this.#phase <= 4) {
211-
this.#y += 4
211+
this.#y -= 4
212212
} else if (this.#phase <= 6) {
213-
this.#y += 2
213+
this.#y -= 2
214214
} else if (this.#phase <= 8) {
215-
this.#y += 1
216-
} else if (this.#phase <= 10) {
217215
this.#y -= 1
216+
} else if (this.#phase <= 10) {
217+
this.#y += 1
218218
} else if (this.#phase <= 12) {
219-
this.#y -= 2
219+
this.#y += 2
220220
} else if (this.#phase <= 14) {
221-
this.#y -= 4
221+
this.#y += 4
222222
} else {
223-
this.#y -= 6
223+
this.#y += 6
224224
}
225225
}
226226

0 commit comments

Comments
 (0)