summaryrefslogtreecommitdiff
path: root/level.js
diff options
context:
space:
mode:
Diffstat (limited to 'level.js')
-rw-r--r--level.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/level.js b/level.js
index 78af6d0..0d62adc 100644
--- a/level.js
+++ b/level.js
@@ -60,6 +60,7 @@ export function setupLevelUi(level, root, sfx) {
} catch(err) { }
level.running = false;
level.path = computePath(level.equations);
+ level.resources.forEach(x => x.collected = false);
render(ui.ctx, level, 0);
};
ui.xeq.onkeydown = ui.xeq.onchange;
@@ -77,6 +78,7 @@ export function setupLevelUi(level, root, sfx) {
} catch(err) { }
level.running = false;
level.path = computePath(level.equations);
+ level.resources.forEach(x => x.collected = false);
render(ui.ctx, level, 0);
};
ui.yeq.onkeydown = ui.yeq.onchange;