2020-06-19 16:36:40 +02:00
|
|
|
const DEBUG_MODE: boolean = process.env.DEBUG_MODE == "true";
|
2020-06-25 11:39:38 +02:00
|
|
|
const API_URL = (window !== undefined ? window.location.protocol : 'http://') + '//' + (process.env.API_URL || "api.workadventure.localhost");
|
2020-05-04 01:48:14 +02:00
|
|
|
const RESOLUTION = 3;
|
2020-04-27 18:12:36 +02:00
|
|
|
const ZOOM_LEVEL = 1/*3/4*/;
|
2020-06-01 22:42:18 +02:00
|
|
|
const POSITION_DELAY = 200; // Wait 200ms between sending position events
|
2020-06-02 10:48:04 +02:00
|
|
|
const MAX_EXTRAPOLATION_TIME = 250; // Extrapolate a maximum of 250ms if no new movement is sent by the player
|
2020-04-05 20:57:14 +02:00
|
|
|
|
|
|
|
export {
|
2020-04-13 19:40:10 +02:00
|
|
|
DEBUG_MODE,
|
2020-04-06 22:55:09 +02:00
|
|
|
API_URL,
|
2020-04-07 20:41:35 +02:00
|
|
|
RESOLUTION,
|
2020-04-13 19:56:41 +02:00
|
|
|
ZOOM_LEVEL,
|
2020-06-02 10:48:04 +02:00
|
|
|
POSITION_DELAY,
|
|
|
|
MAX_EXTRAPOLATION_TIME
|
2020-04-27 18:12:36 +02:00
|
|
|
}
|