fix(animation): 종족별 캐릭터 프레임 폭 통일 (6자)
This commit is contained in:
@@ -518,14 +518,16 @@ class _GamePlayScreenState extends State<GamePlayScreen>
|
||||
|
||||
/// 부활 처리 핸들러
|
||||
Future<void> _handleResurrect() async {
|
||||
// 1. 부활 처리 (HP/MP 회복, 장비 구매 - 게임 재개 없음)
|
||||
await widget.controller.resurrect();
|
||||
|
||||
// 2. 부활 애니메이션 재생
|
||||
// 1. 부활 애니메이션 먼저 설정 (DeathOverlay 사라지기 전에)
|
||||
setState(() {
|
||||
_specialAnimation = AsciiAnimationType.resurrection;
|
||||
});
|
||||
|
||||
// 2. 부활 처리 (HP/MP 회복, 장비 구매 - 게임 재개 없음)
|
||||
// 이 시점에서 isDead가 false가 되고 DeathOverlay가 사라지지만,
|
||||
// _specialAnimation이 이미 설정되어 있어 부활 애니메이션이 표시됨
|
||||
await widget.controller.resurrect();
|
||||
|
||||
// 3. 애니메이션 종료 후 게임 재개
|
||||
final duration = getSpecialAnimationDuration(
|
||||
AsciiAnimationType.resurrection,
|
||||
|
||||
Reference in New Issue
Block a user