diff options
author | sanine <sanine.not@pm.me> | 2024-07-07 18:31:39 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2024-07-07 18:31:39 -0500 |
commit | 2c31a91ba27ea48c5db4a06be82476d26d642c7d (patch) | |
tree | 51442315c9d36e175a70fe1437ecc00cf82f0089 /level.js | |
parent | 95ee8172ae99c00efbfb1c8c105112f82711ae01 (diff) | |
parent | c6c473e03c7b9a993ccaf28bcff2d87fbdf9c931 (diff) |
add level intro messages & mergemain
Diffstat (limited to 'level.js')
-rw-r--r-- | level.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6,7 +6,7 @@ const X_START = 't'; 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; @@ -182,7 +182,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); |