summaryrefslogtreecommitdiff
path: root/level.js
diff options
context:
space:
mode:
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);