Files
42_INT_14_transcendence/src/client/constants.ts
LuckyLaszlo 3474d54a2b drawing now seperate from gameLoop
+ refactoring
+ added soundMutedFlag
2022-11-24 13:56:51 +01:00

17 lines
599 B
TypeScript

import { w } from "../shared_js/constants.js"
export * from "../shared_js/constants.js"
export const midLineSize = Math.floor(w/150);
export const scoreSize = Math.floor(w/16);
export const gridSize = Math.floor(w/500);
// min interval on Firefox seems to be 15. Chrome can go lower.
export const handleInputIntervalMS = 15; // millisecond
export const gameLoopIntervalMS = 15; // millisecond
export const drawLoopIntervalMS = 15; // millisecond
export const soundMutedFlag = true;
export const soundRobloxVolume = 0.3; // between 0 and 1
export const soundPongVolume = 0.3; // between 0 and 1