Hacker News new | ask | show | jobs
by rob74 1385 days ago
Nice! Would be more realistic (and more Mini Metro-like) if the trains actually stopped at the stations though. Also, the trains don't have to disappear and reappear at the terminal stations, they could just stay there until they are scheduled to go back - after all, that's what they do in reality as well...

Any chance that the source could be made available ;) ?

4 comments

It's linked in the (somewhat easy to miss) about page

https://xn--ubhnchen-1za.vercel.app/en/about

The solution with fade out / fade in is pretty clever. Short layovers will cross-fade automatically, but you don’t need complicated internal information about which train continues from one run to the next.

Stopping would be neat, but may also be visually messy.

It doesn't have to be complicated though, and it also doesn't need additional information. The trains could simply be "parked" at terminus stations, and when a train is scheduled to depart in the other direction, check if a train is available at the station - if yes, use it, if no, create a new one.
Strangely S-Bahn does stop at stations, U-Bahn does not.

Maybe a difference in the source data?