Last active
October 13, 2020 18:40
-
-
Save Jared-Sprague/21345ce9ded313ee72ddcaf1811076db to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const NODEJS_ENV_DEV = typeof module !== 'undefined' && module.exports; | |
const DEV_SETTINGS = { | |
WORLD_SIZE : 2000, | |
MAX_BOTS : 25, | |
FOOD_DENSITY : 40, | |
INITIAL_PLAYER_RADIUS : 5, | |
FOOD_VALUE : 0.5, | |
DEBUG : true, | |
HEARTBEAT_ENABLE : false, | |
BALANCER : 'osd', | |
CHECK_ORIGIN : false, | |
CHECK_VERSION : false, | |
REQUIRE_ALPHA_KEY : false, | |
AUTO_RUN_ENABLED : true, | |
NUM_GAME_INSTANCES : 1, | |
ENABLE_WEB_SERVER : true, | |
ENABLE_HTTPS : false, | |
ENABLE_BACKEND_SERVICE: false, | |
BOT_DEFAULT_MOVEMENT : 'curve', | |
WS_CONNECT_PORT : 31000, | |
BALANCERS : Object.freeze( { | |
LOCAL : 'localhost', | |
osd : '<INSERT ROUTE HERE>', | |
fremont : 'uswest.zorb.io', | |
dallas : 'uscentral.zorb.io', | |
newark : 'useast.zorb.io', | |
london : 'uk.zorb.io', | |
frankfurt : 'eu.zorb.io', | |
singapore : 'apac.zorb.io', | |
zor_bio : 'zor.bio', | |
zor_bio_www: 'www.zor.bio', | |
zorb_io : 'zorb.io', | |
zorb_io_www: 'www.zorb.io', | |
} ); | |
}; | |
if (NODEJS_ENV_DEV) { | |
let ZOR = {}; | |
ZOR.Env = DEV_SETTINGS; | |
module.exports = ZOR.Env; | |
} | |
else { | |
ZOR.Env = DEV_SETTINGS; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment