diff options
author | Mark Powers <markppowers0@gmail.com> | 2020-05-14 10:29:07 -0500 |
---|---|---|
committer | Mark Powers <markppowers0@gmail.com> | 2020-05-14 10:29:07 -0500 |
commit | c5d5990eecd254f3d5daf33a6c9cd394dcba2058 (patch) | |
tree | 60cc8a229afe44fa4b4189e1016895fadee58ef9 /src/paperflight/index.html | |
parent | ae74d0d38196c14ea79cef2444f508c649c57580 (diff) |
Fix coin not respawning on reset
Diffstat (limited to 'src/paperflight/index.html')
-rw-r--r-- | src/paperflight/index.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/paperflight/index.html b/src/paperflight/index.html index 26540b4..ef26a03 100644 --- a/src/paperflight/index.html +++ b/src/paperflight/index.html @@ -69,6 +69,11 @@ currLevelIndex = to currLevel = levels[currLevelIndex] currLevel.items = currLevel.items.slice() + currLevel.items.forEach(item => { + if("collected" in item){ + item.collected = false + } + }) collected = 0 switchState = 0 startLevel = false |