drawing now seperate from gameLoop
+ refactoring + added soundMutedFlag
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
|
||||
import {w} from "../shared_js/constants.js"
|
||||
import { w } from "../shared_js/constants.js"
|
||||
export * from "../shared_js/constants.js"
|
||||
|
||||
export const midLineSize = Math.floor(w/150);
|
||||
@@ -9,6 +9,8 @@ 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 soundRobloxVolume = 0; // between 0 and 1
|
||||
export const soundPongVolume = 0; // between 0 and 1
|
||||
export const soundMutedFlag = true;
|
||||
export const soundRobloxVolume = 0.3; // between 0 and 1
|
||||
export const soundPongVolume = 0.3; // between 0 and 1
|
||||
|
||||
Reference in New Issue
Block a user