tramgame.simonprickett.dev• Nov 11, 2023• 1 min read
Show HN: I made one of those transit memory games for the Nottingham TramI made one of those transit memory games for the Nottingham Tram system as part of learning about Cloudflare Pages and Workers.Guess all the stations - here's a couple for starters:* Lace Market * Clifton SouthYou can hover over a found station to see more details about it, and click found stations to have the map re-focus on that station.It should be easy enough to repurpose this for other cities if you have data files for the track layouts and stations. I used open source KML files as the basis of mine. Front end is a combination of Bulma and Leaflet Maps with tiles from Stamen / Stadia.Source code link is in the footer of the game page.This is a little rough as I'm not naturally a front end developer. Notably the list of found stations needs to scroll when it gets taller than the map on the desktop view, and probably collapse by default on mobile. I'll get around to that!!!Cheers,Simon.