1 Commits

Author SHA1 Message Date
Ryan Hamamura
85af1722c3 feat: animate fleet of container ships along bay waypoints
All checks were successful
CI / Build and Test (push) Successful in 35s
CI / Build and Test (pull_request) Successful in 34s
Replace the static ship marker with three signal-backed ships that
lerp along waypoint loops through SF Bay (Golden Gate, Oakland, and
Sausalito ferry routes). All clients see the same ship positions via
shared Go state synced every second.
2026-02-20 11:09:28 -10:00

View File

@@ -28,7 +28,7 @@ var (
// shipState tracks a ship lerping along a loop of waypoints.
type shipState struct {
lng, lat float64
lng, lat float64
waypoints [][2]float64 // [lng, lat] pairs
wpIdx int // index of next target waypoint
progress float64 // 0..1 toward next waypoint