Add dramatic ship explosion effect on death

- Ship now breaks into fragments that fly apart on explosion
- Added bright central flash that fades out
- Ship wings rotate and fly off in different directions
- Cockpit fragment flies upward while shrinking
- Added debris particles and sparks with physics
- Smoke trail effect appears after initial explosion
- Extended animation to 500ms for more dramatic effect
- Multiple layers: flash, fragments, debris, sparks, and smoke
This commit is contained in:
2025-11-04 18:33:21 +00:00
parent 8693c3bee2
commit 175d7ec692
2 changed files with 114 additions and 15 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ export function useGameStatus(onGameLoopTick?: (deltaTime: number, letters: Fall
lettersRef.current = [];
lastSpawnRef.current = performance.now();
setShipState('normal');
}, 300);
}, 500); // Match the 500ms explosion animation
}
}
});