From c5d5990eecd254f3d5daf33a6c9cd394dcba2058 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Thu, 14 May 2020 10:29:07 -0500 Subject: Fix coin not respawning on reset --- src/paperflight/index.html | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/paperflight/index.html') 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 -- cgit v1.2.3