Raise pokeball burst effect to upper quarter of Pokemon for centered impact

This commit is contained in:
Sterling Archer
2026-05-27 14:38:05 -07:00
parent 143bd68f5b
commit a4afb18946
+1 -1
View File
@@ -1343,7 +1343,7 @@ class Game {
const burst = document.createElement('div'); const burst = document.createElement('div');
burst.className = 'pokeball-burst'; burst.className = 'pokeball-burst';
burst.style.left = (pokeRect.left - screenRect.left + pokeRect.width / 2) + 'px'; burst.style.left = (pokeRect.left - screenRect.left + pokeRect.width / 2) + 'px';
burst.style.top = (pokeRect.top - screenRect.top + pokeRect.height / 2) + 'px'; burst.style.top = (pokeRect.top - screenRect.top + pokeRect.height * 0.25) + 'px';
catchScreen.appendChild(burst); catchScreen.appendChild(burst);
ball.remove(); ball.remove();