silphius/app/constants.js
2024-06-11 02:26:41 -05:00

27 lines
398 B
JavaScript

export const CLIENT_LATENCY = 0;
export const CLIENT_PREDICTION = true;
export const RESOLUTION = {
x: 800,
y: 450,
};
export const SERVER_LATENCY = 0;
export const TPS = 60;
export const ACTION_MAP = {
w: 'moveUp',
d: 'moveRight',
s: 'moveDown',
a: 'moveLeft',
};
export const MOVE_MAP = {
'moveUp': 'up',
'moveRight': 'right',
'moveDown': 'down',
'moveLeft': 'left',
};