-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
19 lines (15 loc) · 763 Bytes
/
Copy pathconfig.js
File metadata and controls
19 lines (15 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
let config = {};
// Common
config.host = 'http://localhost';
config.port = 3000;
// Socket
config.socket = {};
config.socket.port = 8080;
// Ball's identifiers
config.game = {};
config.game.minCombo = 4; // Minimum combo
config.game.timeBetweenPlayersUpdate = 1.0; // Send scores sometimes
config.game.timeBetweenActions = 5.0; // Players must wait this given amount of seconds to do another action
config.game.ballTypes = { 'Blue': 1, 'Red': 2, 'Grey': 3 };
config.game.events = { 'RemoveBall': 1, 'AddBall': 2, 'UpdateBall': 3 };
module.exports = config;