diff options
-rw-r--r-- | level.js | 4 | ||||
-rw-r--r-- | main.js | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -6,7 +6,7 @@ const X_START = '0'; const Y_START = 't'; const PATH_LEN = 20; -const PATH_STEP = PATH_LEN/1000; +const PATH_STEP = PATH_LEN/500; const SLOW_RAMP = 1; const FAST_RAMP = 0.01; @@ -177,7 +177,7 @@ function stepLevel(ui, level, index) { render(ui.ctx, level, 0); } else if (level.running && index < level.path.length-1) { const distNext = distance(pos, level.path[index+1] || pos); - setTimeout(() => stepLevel(ui, level, index+1), 50*distNext); + setTimeout(() => stepLevel(ui, level, index+1), distNext); } else { if (index >= level.path.length-1) { finishLevel(ui, level, true); @@ -28,10 +28,10 @@ window.onload = () => setTimeout(() => { start.value = 'connect to AMH'; start.onclick = () => { // set up fullscreen - document.documentElement.requestFullscreen(); + document.documentElement.requestFullscreen({ navigationUI: 'hide' }); document.getElementById('fullscreen-toggle').onclick = () => { if (document.fullscreenElement === null) { - document.documentElement.requestFullscreen(); + document.documentElement.requestFullscreen({ navigationUI: 'hide' }); } else { document.exitFullscreen(); } |