Adjusted position of battle boxes

This commit is contained in:
infinitefusion
2023-11-16 21:13:43 -05:00
parent 9a507fe4c1
commit 7bfaec31f2
7 changed files with 15 additions and 4 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -63,20 +63,31 @@ class PokemonDataBox < SpriteWrapper
# Determine the co-ordinates of the data box and the left edge padding width # Determine the co-ordinates of the data box and the left edge padding width
if onPlayerSide if onPlayerSide
@spriteX = Graphics.width - 244 @spriteX = Graphics.width - 244
@spriteY = Graphics.height - 192 @spriteY = Graphics.height - 176#192
@spriteBaseX = 34 @spriteBaseX = 34
else else
@spriteX = 8 #-16 @spriteX = 8 #-16
@spriteY = 36 @spriteY = 0##36
@spriteBaseX = 8 #16 @spriteBaseX = 8 #16
end end
case sideSize case sideSize
when 2 when 2
@spriteX += [-12, 12, 0, 0][@battler.index] @spriteX += [-12, 12, 0, 0][@battler.index]
@spriteY += [-20, -34, 34, 20][@battler.index]
#@spriteY += [-38, -6, 16, 48][@battler.index] #standard
#@spriteY += [-32, -6, 16, 42][@battler.index] #smaller gap
@spriteY += [-18, -6, 16, 28][@battler.index] #overlap
#@spriteY += [-20, -34, 34, 20][@battler.index]
when 3 when 3
@spriteX += [-12, 12, -6, 6, 0, 0][@battler.index] @spriteX += [-12, 12, -6, 6, 0, 0][@battler.index]
@spriteY += [-42, -46, 4, 0, 50, 46][@battler.index] #@spriteY += [-74, -8, -28, 38, 16, 84][@battler.index] #standard
@spriteY += [-54, -8, -18, 26, 16, 58][@battler.index] #overlap
end end
end end

Binary file not shown.