aboutsummaryrefslogtreecommitdiff
path: root/src/paperflight/static/levels.js
diff options
context:
space:
mode:
authorMark Powers <markppowers0@gmail.com>2020-05-13 22:23:28 -0500
committerMark Powers <markppowers0@gmail.com>2020-05-13 22:23:28 -0500
commite0552a705e3ddfd79a684ee7a67ca02f57fbb2bc (patch)
tree1eabf5520a821089e0c3b1314c7a9b5304254526 /src/paperflight/static/levels.js
parentcd8b5ef7da2116c20c6b4fa22fa94282fac49bda (diff)
Complete switches
Diffstat (limited to 'src/paperflight/static/levels.js')
-rw-r--r--src/paperflight/static/levels.js45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/paperflight/static/levels.js b/src/paperflight/static/levels.js
index a7116b4..aba9712 100644
--- a/src/paperflight/static/levels.js
+++ b/src/paperflight/static/levels.js
@@ -1,5 +1,50 @@
var levels = {
1: {
+ coinsNeeded: 0,
+ exit: {
+ x: 40,
+ y: 460
+ },
+ title: "Switch madness",
+ items: [{
+ draw: drawSwitch,
+ update: updateSwitch,
+ x: 120,
+ y: 400,
+ width: 60,
+ height: 60,
+ stateCount: 3
+ },
+ {
+ draw: drawSwitchRect,
+ update: updateSwitchRect,
+ x: 300,
+ y: 400,
+ width: 60,
+ height: 60,
+ state: 0
+ },
+ {
+ draw: drawSwitchRect,
+ update: updateSwitchRect,
+ x: 400,
+ y: 400,
+ width: 60,
+ height: 60,
+ state: 1
+ },
+ {
+ draw: drawSwitchRect,
+ update: updateSwitchRect,
+ x: 500,
+ y: 400,
+ width: 60,
+ height: 60,
+ state: 2
+ },
+ ]
+ },
+ 2: {
coinsNeeded: 5,
exit: {
x: 40,