mirror of
https://github.com/nacabaro/vbhelper.git
synced 2026-06-05 13:52:54 +00:00
Fixed enemy attack sprite positioning.
This commit is contained in:
parent
acd990d32b
commit
cfa52bce9b
@ -283,7 +283,7 @@ fun PlayerBattleView(
|
||||
val xOffset = when (battleSystem.attackPhase) {
|
||||
1 -> (attackAnimationProgress * 400 + 50).dp // Player attack on player screen - start and end more to the right
|
||||
2 -> (attackAnimationProgress * 400 - 200).dp // Player attack on opponent screen
|
||||
4 -> (-attackAnimationProgress * 400 + 200).dp // Opponent attack on player screen
|
||||
4 -> (-attackAnimationProgress * 400 + 350).dp // Opponent attack on player screen - start more to the right
|
||||
else -> 0.dp
|
||||
}
|
||||
|
||||
@ -467,7 +467,7 @@ fun OpponentBattleView(
|
||||
if (shouldShowAttack) {
|
||||
val xOffset = when (battleSystem.attackPhase) {
|
||||
2 -> (attackAnimationProgress * 400 - 350).dp // Player attack on opponent screen - start more to the left
|
||||
3 -> (-attackAnimationProgress * 400 + 200).dp // Opponent attack on opponent screen
|
||||
3 -> (-attackAnimationProgress * 400 + -50).dp // Opponent attack on opponent screen - start more to the left
|
||||
else -> 0.dp
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user