summaryrefslogtreecommitdiff
path: root/level.js
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2024-07-07 18:31:39 -0500
committersanine <sanine.not@pm.me>2024-07-07 18:31:39 -0500
commit2c31a91ba27ea48c5db4a06be82476d26d642c7d (patch)
tree51442315c9d36e175a70fe1437ecc00cf82f0089 /level.js
parent95ee8172ae99c00efbfb1c8c105112f82711ae01 (diff)
parentc6c473e03c7b9a993ccaf28bcff2d87fbdf9c931 (diff)
add level intro messages & mergemain
Diffstat (limited to 'level.js')
-rw-r--r--level.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/level.js b/level.js
index 667013b..d00953a 100644
--- a/level.js
+++ b/level.js
@@ -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);