feat: implement pixel-based spaceship animation with 100ms movement duration

Refactor spaceship positioning from column-based to pixel-based coordinates
with time-based interpolation, enabling smooth animation to letter positions
in exactly 100ms regardless of distance. Fixes coordinate mismatch that
prevented spaceship from moving to spawned letters.
This commit is contained in:
2025-11-03 22:22:11 +00:00
parent 5a0d8b5221
commit aff5ccecbf
5 changed files with 77 additions and 21 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ export const getGamePhase = (status: GameStatus): GamePhase =>
// Game-Specific Types
// ============================================================================
export type PlayerPosition = { x: number }; // 0-9 for 10 columns
export type PlayerPosition = { x: number }; // pixel position 0-800
export type FallingLetter = {
id: string;
letter: string;