Fix some bugs

This commit is contained in:
Flashfyre committed 2023-04-24 22:32:12 -04:00
1 parent 842e2707a1
commit 3753ea73be
7 files changed
+19 -11

No files matched your search

+1 -1
View File
@@ -557,7 +557,7 @@ export abstract class BattleAnim {
let xOffset = (!isReverseCoords ? (userInitialX - targetInitialX) : (targetInitialX - userInitialX));
let yOffset = (!isReverseCoords ? (userInitialY - targetInitialY) : (targetInitialY - userInitialY));
const ySpriteOffset = ((userHalfHeight * (1 - xProgress)) + (targetHalfHeight * xProgress)) * -1;
const globalXOffset = !isGlobal ? 0 : -114;
const globalXOffset = 0;//!isGlobal ? 0 : -114;
const globalYOffset = 0;
if (isGlobal) {
xOffset -= ((scene.game.canvas.width / 6) * 0.25) / 2;