fix(animation): 이펙트 Y 위치 동적 계산
- 이펙트 높이에 따라 Y 위치 자동 조정 - 캔버스 하단 기준으로 이펙트 정렬
This commit is contained in:
@@ -263,8 +263,9 @@ class CanvasBattleComposer {
|
|||||||
|
|
||||||
final cells = _spriteToCells(effectLines);
|
final cells = _spriteToCells(effectLines);
|
||||||
|
|
||||||
// 캐릭터 3줄 기준, 머리 위치
|
// 이펙트 높이에 따른 동적 Y 위치 (캔버스 하단 기준)
|
||||||
final effectY = frameHeight - 3 - 1;
|
final effectHeight = effectLines.length;
|
||||||
|
final effectY = frameHeight - effectHeight - 1;
|
||||||
|
|
||||||
return AsciiLayer(
|
return AsciiLayer(
|
||||||
cells: cells,
|
cells: cells,
|
||||||
|
|||||||
Reference in New Issue
Block a user