A multi-player game made for the dome theatre at Visualiseringscenter C as a Bachelor's project in Media Technology at Linköping University during the spring of 2020. The code stub given in SGCT-Networked-Application was used as the foundation for the project.
To clone this repository, don't forget to recurse submodules: git clone --recurse-submodules https://github.com/Lrssn/DomeDagen.git
or the dependent libraries will not work correctly.
- Execute
npm install
in thewebserver
folder - Compile the application
- Start the web server with
node server.js
in thewebserver
folder - Start the application
- Connect from a second device
In the current version, it is necessary to start the server before starting the application, as the application will only try to connect once at startup.
Currently, the server and application addresses are encoded in several places that all have to be changed:
-
Create
config.json
in/webserver
without comments{ "serverAddress":"ws://192.168.0.103", //ip to your local server "gameAddress":"::ffff:127.0.0.1", //ip to gameserver localhost when on your own machine "gamePort":"8081", //port to gameserver "serverPort":"8081" //port to your local server }
-
The ip and port at which the game application will try to connect to to the webserver is set in
config.ini
in the root directory, ex:[Network] ip = localhost port = 81