simonprickett / glasgow-light-rail-game

Station name guessing game for the Glasgow Subway.

Home Page:https://glasubgame.simonprickett.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Light Rail Game

This is a light rail station name guessing game using Cloudflare Pages and Workers, the Bulma CSS framework and Leaflet maps with tiles from Stamen.

GIF showing the tram game working in a browser

TODO - write a full README... meantime, try it out in the following locations:

You'll need a recent version of Node.js installed to run this game. I've tested it with version 18.18.2.

To run this project locally, first clone it and install the dependencies:

git clone https://github.com/simonprickett/light-rail-game.git
cd light-rail-game
npm install

The game exists for a few different locations, and has to be built with a specific location target.

For the Nottingham Tram system:

npm run build nottingham

If you want to play with the Glasgow Subway data:

npm run build glasgow

The Edinburgh Tram system can be built like this:

npm run build edinburgh

And Austin MetroRail:

npm run build austin

To use the SF BART data:

npm run build sfbay

Now start the local server:

npm start

The URL that the game is running on will be displayed in your console output. Example: http://127.0.0.1:8788/

About

Station name guessing game for the Glasgow Subway.

https://glasubgame.simonprickett.dev/

License:MIT License


Languages

Language:JavaScript 73.0%Language:Handlebars 24.4%Language:CSS 2.6%