fix(animation): 이펙트 Y 위치 동적 계산

- 이펙트 높이에 따라 Y 위치 자동 조정
- 캔버스 하단 기준으로 이펙트 정렬
This commit is contained in:
JiWoong Sul
2025-12-27 20:28:22 +09:00
parent 17ab73758a
commit 5fa58695ec

View File

@@ -263,8 +263,9 @@ class CanvasBattleComposer {
final cells = _spriteToCells(effectLines);
// 캐릭터 3줄 기준, 머리 위치
final effectY = frameHeight - 3 - 1;
// 이펙트 높이에 따른 동적 Y 위치 (캔버스 하단 기준)
final effectHeight = effectLines.length;
final effectY = frameHeight - effectHeight - 1;
return AsciiLayer(
cells: cells,