- adjust risky animation offset
 - show inventory in shop
This commit is contained in:
2025-12-09 11:47:37 +09:00
parent d544f46766
commit ac4df02654
8 changed files with 726 additions and 649 deletions
@@ -85,8 +85,11 @@ class BattleAnimationWidgetState extends State<BattleAnimationWidget>
if (!mounted) return;
// 2. Dash to Target (Impact)
_translateAnimation = Tween<Offset>(begin: Offset.zero, end: targetOffset)
.animate(
// Adjust offset to prevent complete overlap (stop slightly short) since both share the same layer stack
final adjustedOffset = targetOffset * 0.5;
_translateAnimation =
Tween<Offset>(begin: Offset.zero, end: adjustedOffset).animate(
CurvedAnimation(
parent: _translateController,
curve: Curves.easeInExpo, // Heavy impact curve