Multiplayer WebGL Game
-
Install the Node dependencies:
npm install
-
Run the server:
npm start
Or:
node app.js
WebSocket and HTTP servers will be started on port
30043
by default. You can change the port or host via environment variables:TANX_PORT=30043
TANX_HOST='0.0.0.0'
- Fork the tanx client project.
- Run the game from designer with
?server=local
argument so it connects tohttp://localhost:30043/socket
. - Play your fork!
- added usernames - let others know you
- added us server - if you are from US, it will connect to dedicated server on west-coast for better network experience
- changes ui, designs by @roonio
- changes room capacity - 12 players
- added teams - 4 of [blue, red, green yellow] colours
- added scores - teams and players have score
- added end game scenario - first team to reach 32 kills
- added lobby and rooms - each room can handle up to 16 players, then new room will be created
- added pickables: repair, bullets, shield
- added Block object
- added tank-level collision
- added bullet-level collision
- merged @cvan pull request: allow host/port to be changed via environment variables; update README with verbose instructions
- merged @cvan pull request: code linting