A JavaScript 2-man multiplayer game about conquering zones. Created with tree.js, socket.io and mongo-db.
Real time communication and decision making. Supports large amount of 2 man lobbies simultaneously and player reconnection.
If MongoDB is present and running on local machine enables user registration, login and storing game related statistics.
Just move around using [W
][A
][S
][D
] and every small amount of time you will generate points in region where you are standing. The rest of game mechanics is for you to discover.
Install packages
npm i
Run
npm start
server_config.json
The configuration file stores some important constants
and could be used to easy configure game experience.
interval
- defines how often server computes and sends data [ms
]
gameTime
- how long does one match lasts [s
]
capacity
- defines maximum points in default region
globalExpansionDivider
- represents a number used in dividing expansion points