Double frame rate
This commit is contained in:
parent
598dbc67ac
commit
2fe9b63c70
|
@ -163,7 +163,7 @@ let level = Level.createFromFile(Setting.LEVELS_LOCATION + LEVEL[levelIndex]);
|
||||||
|
|
||||||
const GAME_SPEED = 1;
|
const GAME_SPEED = 1;
|
||||||
const GRAVITY = level.gravity;
|
const GRAVITY = level.gravity;
|
||||||
let fps = 60;
|
let fps = 120;
|
||||||
const browser = navigator.userAgent.indexOf('Firefox') === -1 ? 'Chrome' : 'Firefox';
|
const browser = navigator.userAgent.indexOf('Firefox') === -1 ? 'Chrome' : 'Firefox';
|
||||||
let frameDuration;
|
let frameDuration;
|
||||||
let lastRendered = undefined;
|
let lastRendered = undefined;
|
||||||
|
|
Loading…
Reference in New Issue