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:
@@ -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
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user