Raise pokeball burst effect to upper quarter of Pokemon for centered impact
This commit is contained in:
1 parent
143bd68f5b
commit
a4afb18946
1 file changed
+1
-1
@@ -1343,7 +1343,7 @@ class Game {
|
||||
const burst = document.createElement('div');
|
||||
burst.className = 'pokeball-burst';
|
||||
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);
|
||||
|
||||
ball.remove();
|
||||
|
||||
Reference in new issue
Block a user