From c012fec2870757990080e823d42dd91031e64f25 Mon Sep 17 00:00:00 2001 From: sanine Date: Sat, 6 Jul 2024 21:24:04 -0500 Subject: set rocket to relatively constant velocity --- main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main.js') diff --git a/main.js b/main.js index 0415b29..94d5e77 100644 --- a/main.js +++ b/main.js @@ -1,8 +1,8 @@ import { setupLevelSelectUi } from './levelSelect.js'; import { setupLevel, setupLevelUi } from './level.js'; -window.onload = () => { - +window.onload = () => setTimeout(() => { + const root = document.getElementById('root'); root.classList.add('center'); @@ -79,4 +79,4 @@ window.onload = () => { setupLevelSelectUi(root, sfx); }; root.appendChild(start); -} +}, 200); -- cgit v1.2.1