Raise pokeball burst effect to upper quarter of Pokemon for centered impact
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user