diff --git a/index.html b/index.html index cf84e39..4f7436d 100644 --- a/index.html +++ b/index.html @@ -930,6 +930,7 @@ wrap.addEventListener('pointerdown', function (e) { if (e.pointerType !== 'mouse' && wrap.setPointerCapture) { try { wrap.setPointerCapture(e.pointerId); } catch (err) {} } if (e.pointerType === 'mouse' && !pointerLocked) canvasRequestLock(); + if (state === 'levelclear') return; if (state === 'playing') { launchAttached(); return; } if (state === 'paused') { state = 'playing'; hideMsg(); last = performance.now(); return; } startOrRestart(); @@ -940,6 +941,7 @@ if (e.key === 'ArrowRight') keys.right = true; if (e.code === 'Space' || e.key === 'Enter') { e.preventDefault(); + if (state === 'levelclear') return; if (state === 'paused') { state = 'playing'; hideMsg(); last = performance.now(); return; } if (state === 'playing') { launchAttached(); return; } startOrRestart();