Double frame rate

This commit is contained in:
Mal 2021-09-21 09:48:54 +02:00
parent 598dbc67ac
commit 2fe9b63c70

View File

@ -163,7 +163,7 @@ let level = Level.createFromFile(Setting.LEVELS_LOCATION + LEVEL[levelIndex]);
const GAME_SPEED = 1;
const GRAVITY = level.gravity;
let fps = 60;
let fps = 120;
const browser = navigator.userAgent.indexOf('Firefox') === -1 ? 'Chrome' : 'Firefox';
let frameDuration;
let lastRendered = undefined;