1 Commits

Author SHA1 Message Date
Ryan Hamamura
29228fc9ea feat: animate fleet of container ships along bay waypoints
Some checks failed
CI / Build and Test (push) Failing after 7s
CI / Build and Test (pull_request) Failing after 7s
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:03:59 -10:00

View File

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