pause using the pause key

This commit is contained in:
minjaesong
2024-09-13 21:55:03 +09:00
parent 8f34fb41ed
commit 1924ed1fbc
7 changed files with 73 additions and 33 deletions

View File

@@ -714,18 +714,18 @@ open class ActorHumanoid : ActorWithBody, Controllable, Pocketed, Factionable, L
private fun swimUp() {
val timedJumpCharge = jumpFunc(MAX_JUMP_LENGTH, 0)
swimAcc = -getJumpAcc(jumpPower1, timedJumpCharge) * SWIM_ACC_MULT
swimAcc = -getJumpAcc(jumpPower1, timedJumpCharge) * SWIM_ACC_MULT * speedMultByTile
}
private fun swimDown() {
val timedJumpCharge = jumpFunc(MAX_JUMP_LENGTH, 0)
swimAcc = getJumpAcc(jumpPower1, timedJumpCharge) * SWIM_ACC_MULT
swimAcc = getJumpAcc(jumpPower1, timedJumpCharge) * SWIM_ACC_MULT * speedMultByTile
}
private fun swimVertJoypad(up: Boolean, absAxisVal: Float) {
val timedJumpCharge = jumpFunc(MAX_JUMP_LENGTH, 0)
val sign = if (up) -1.0 else 1.0
swimAcc = sign * getJumpAcc(jumpPower1, timedJumpCharge) * absAxisVal * SWIM_ACC_MULT
swimAcc = sign * getJumpAcc(jumpPower1, timedJumpCharge) * absAxisVal * SWIM_ACC_MULT * speedMultByTile
}