git clone https://github.com/hayasep/2DSpaceGame
cd 2DSpaceGame
git checkout multiplayer
npm install
npm run start
cd 2DSpaceGame/client
npm install
npm start
A browser window should open that is connected to your local host (if not, go to http://localhost:8080/ in your browser). Open up a second browser window and go to the same address.
Hit start game in each window and the game should now be running. Hit start to confirm both users have connected:
To play the game again once it’s finished, kill the server in the terminal (Ctrl+C) and restart it with the same command:
npm run start
Once you refresh each browser page, you should be able to play again.
Repository: 2DSpaceGame