diff options
Diffstat (limited to 'level.js')
-rw-r--r-- | level.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |