Train games and game trains are great! When I learned PICO-8/Lua, I made a train game as my first real project.
https://www.lexaloffle.com/bbs/?pid=ddp8#p
I love the trains in Persona 5. I love the way you tap your transit pass on the wickets and casually walk through.
穴 Thank you for posting this so I don’t have to. I learned how to emulate PS1 games because I bought a copy of Densha de Go 2 for PS1 at the Portland Retro Gaming Expo a few years back. It is super hard and super relaxing at the same time.
Control has a sub-level centered around the “Eagle Limited” train that had… an incident.

Final Fantasy VII (1997) has a really good train graveyard. It’s a short dungeon where you move some trains to get some passages open and get some simple items. I really enjoy the mood of it though.

The rest of FF7’s trains are only “OK”.
Final Fantasy VII Remake’s re-imagined train graveyard is a whole episode in the game and is a bit overlong.

It has an additional repair center that ends with a bunch of elemental immune monsters with tight timing windows. Looks pretty, but isn’t my favorite train.