mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 06:19:29 +02:00
Adjust crit capture animation
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
This commit is contained in:
parent
2a06d6dce5
commit
d5fa81b8ec
@ -112,8 +112,8 @@ export function doPokeballBounceAnim(scene: BattleScene, pokeball: Phaser.GameOb
|
||||
let bounceY = y2;
|
||||
const yd = y2 - y1;
|
||||
const x0 = pokeball.x;
|
||||
const x1 = x0 + 4;
|
||||
const x2 = x0 - 4;
|
||||
const x1 = x0 + 3;
|
||||
const x2 = x0 - 3;
|
||||
let critShakes = 4;
|
||||
|
||||
const doBounce = () => {
|
||||
@ -167,7 +167,7 @@ export function doPokeballBounceAnim(scene: BattleScene, pokeball: Phaser.GameOb
|
||||
x: x0,
|
||||
duration: 60,
|
||||
ease: "Linear",
|
||||
onComplete: () => doBounce()
|
||||
onComplete: () => scene.time.delayedCall(500, doBounce)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user