From 0ec9047997e3ecaf7c4973baaa2e7b6b52e8144c Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Thu, 14 May 2020 11:09:41 -0500 Subject: Refactor level consruction --- src/paperflight/index.html | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/paperflight/index.html') diff --git a/src/paperflight/index.html b/src/paperflight/index.html index a620a1c..62763be 100644 --- a/src/paperflight/index.html +++ b/src/paperflight/index.html @@ -85,16 +85,7 @@ switchState = 0 startLevel = false } else { - currLevel = { - title: "YOU WIN!", - coinsNeeded: 0, - exit: { - x: -100, - y: -100, - radius: 0 - }, - items: [] - } + currLevel = createLevel("YOU WIN!", 0, -100, -100) } } function atExit() { -- cgit v1.2.3