diff options
author | sanine <sanine.not@pm.me> | 2024-07-07 03:08:20 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2024-07-07 03:08:20 -0500 |
commit | e85c6972a724d8c66f0d48e6b2fb0ffdcef8e6fc (patch) | |
tree | a44bb59497b4f534604781c623a613df07d1106a /level.js | |
parent | 1de995864fdda525d7fb95a1313f847cacb47056 (diff) |
fix resource reset bug
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; |