From baba6aa8466d1487a797c51eb341154ef025884f Mon Sep 17 00:00:00 2001 From: Sam Pagenkopf Date: Tue, 23 Jan 2024 20:25:44 -0600 Subject: [PATCH] adjust level message timing --- games/redbricks/game.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/games/redbricks/game.js b/games/redbricks/game.js index c003b3d..dbc612c 100644 --- a/games/redbricks/game.js +++ b/games/redbricks/game.js @@ -13,13 +13,14 @@ function load() { const gameSize = new Point(240, 240); const playfield = new Playfield("playfield", gameSize); let deathCount = 0; - let level = Number(queryURL.get("level")) || 1; + let overrideLevel = Number(queryURL.get("level")); + let level = overrideLevel || 1; let startTime; function introduceLevel() { startTime = new Date(); playfield.showMessage(`LEVEL ${level}`); - setTimeout(start, 1000); + setTimeout(start, overrideLevel ? 500 : 2000); } function start() {