aboutsummaryrefslogtreecommitdiff
path: root/src/paperflight/static/levels.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/paperflight/static/levels.js')
-rw-r--r--src/paperflight/static/levels.js94
1 files changed, 94 insertions, 0 deletions
diff --git a/src/paperflight/static/levels.js b/src/paperflight/static/levels.js
new file mode 100644
index 0000000..d826095
--- /dev/null
+++ b/src/paperflight/static/levels.js
@@ -0,0 +1,94 @@
+var levels = {
+ 1: {
+ coinsNeeded: 5,
+ exit: {
+ x: 40,
+ y: 460
+ },
+ items: [{
+ draw: drawVent,
+ update: updateVent,
+ x: 420,
+ y: 580,
+ width: 60
+ },
+ {
+ draw: drawRamp,
+ update: updateRamp,
+ x: 0,
+ y: 0,
+ slope: 0,
+ width: 800,
+ height: 40
+ },
+ {
+ draw: drawCoin,
+ update: updateCoin,
+ x: 40,
+ y: 80,
+ radius: 10
+ },
+ {
+ draw: drawVent,
+ update: updateVent,
+ x: 120,
+ y: 100,
+ width: 280
+ },
+ {
+ draw: drawBlock,
+ update: updateBlock,
+ x: 580,
+ y: 200,
+ width: 10,
+ height: 250
+ },
+ {
+ draw: drawCoin,
+ update: updateCoin,
+ x: 700,
+ y: 240,
+ radius: 10
+ },
+ {
+ draw: drawCoin,
+ update: updateCoin,
+ x: 700,
+ y: 320,
+ radius: 10
+ },
+ {
+ draw: drawCoin,
+ update: updateCoin,
+ x: 700,
+ y: 400,
+ radius: 10
+ },
+ {
+ draw: drawRamp,
+ update: updateRamp,
+ x: 70,
+ y: 410,
+ slope: 2/5,
+ width: 200,
+ height: 10
+ },
+ {
+ draw: drawRamp,
+ update: updateRamp,
+ x: 70,
+ y: 470,
+ slope: 2/5,
+ width: 200,
+ height: 10
+ },
+ {
+ draw: drawCoin,
+ update: updateCoin,
+ x: 170,
+ y: 405,
+ radius: 10
+ },
+ ]
+ }
+} \ No newline at end of file