Adding PlayerMovement class to interpolate/extrapolate position along tests (installing Jasmine)

This commit is contained in:
David Négrier 2020-06-02 10:48:04 +02:00
parent 077b29bfbd
commit d69ce8a6a6
9 changed files with 144 additions and 2 deletions

View file

@ -3,11 +3,13 @@ const API_URL = process.env.API_URL || "http://api.workadventure.localhost";
const RESOLUTION = 3;
const ZOOM_LEVEL = 1/*3/4*/;
const POSITION_DELAY = 200; // Wait 200ms between sending position events
const MAX_EXTRAPOLATION_TIME = 250; // Extrapolate a maximum of 250ms if no new movement is sent by the player
export {
DEBUG_MODE,
API_URL,
RESOLUTION,
ZOOM_LEVEL,
POSITION_DELAY
POSITION_DELAY,
MAX_EXTRAPOLATION_TIME
}