Sending position only every 200ms while moving
This commit is contained in:
parent
6f646745c1
commit
077b29bfbd
2 changed files with 41 additions and 3 deletions
|
@ -1,13 +1,13 @@
|
|||
const DEBUG_MODE: boolean = process.env.DEBUG_MODE as any === true;
|
||||
const API_URL = process.env.API_URL || "http://api.workadventure.localhost";
|
||||
const ROOM = [process.env.ROOM || "THECODINGMACHINE"];
|
||||
const RESOLUTION = 3;
|
||||
const ZOOM_LEVEL = 1/*3/4*/;
|
||||
const POSITION_DELAY = 200; // Wait 200ms between sending position events
|
||||
|
||||
export {
|
||||
DEBUG_MODE,
|
||||
API_URL,
|
||||
RESOLUTION,
|
||||
ZOOM_LEVEL,
|
||||
ROOM
|
||||
POSITION_DELAY
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue