diff options
Diffstat (limited to 'src/paperflight/static/levels.js')
-rw-r--r-- | src/paperflight/static/levels.js | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/src/paperflight/static/levels.js b/src/paperflight/static/levels.js index 33d011c..7555afb 100644 --- a/src/paperflight/static/levels.js +++ b/src/paperflight/static/levels.js @@ -1,3 +1,6 @@ +/** + * Creates the levels object for the game + */ var levels = { 2: { coinsNeeded: 0, @@ -7,10 +10,10 @@ var levels = { }, title: "Switch madness", items: [ - getSwitch(120, 400, 60, 60, 3), - switchRect(300, 400, 60, 60, 0), - switchRect(400, 400, 60, 60, 1), - switchRect(500, 400, 60, 60, 2), + constructSwitch(120, 400, 60, 60, 3), + constructRect(300, 400, 60, 60, 0), + constructRect(400, 400, 60, 60, 1), + constructRect(500, 400, 60, 60, 2), ] }, 1: { @@ -21,17 +24,17 @@ var levels = { }, title: "Downwards Dash", items: [ - vent(420, 580, 60, 600), - coin(40, 80), - vent(120, 100, 280, 100), - block(580, 200, 10, 250), - coin(700, 240), - coin(700, 320), - coin(700, 400), - ramp(70, 410, 200, 10, 2/5), - ramp(70, 470, 200, 10, 2/5), - coin(170, 405), - block(0, 0, 800, 40) + constructVent(420, 580, 60, 300), + constructCoin(40, 80), + constructVent(120, 100, 280, 100), + constructBlock(580, 200, 10, 250), + constructCoin(700, 240), + constructCoin(700, 320), + constructCoin(700, 400), + constructRamp(70, 410, 200, 10, 2/5), + constructRamp(70, 470, 200, 10, 2/5), + constructCoin(170, 405), + constructBlock(0, 0, 800, 40) ] } }
\ No newline at end of file |