-
Notifications
You must be signed in to change notification settings - Fork 2
/
lvl5.js
41 lines (30 loc) · 1.42 KB
/
lvl5.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
(function(){
function lvl5(io){
//CANVAS VARS
this.io = io;
this.cHeight = io.canvas.height;
this.cWidth = io.canvas.width;
//GAME VARS
this.goal =
this.goalTouch =
this.goalEffect = undefined;
this.goalTime = 150;
this.goalTouchTime = 0;
this.gameWin =
this.gameWinAnim =
this.gameEnd = false;
}; iio.lvl5 = lvl5;
lvl5.prototype.setup = function(){
levelBuilder.setup(this,'lvl5');
levelBuilder.blockBuilder(
[{"vertexs":[{"x":8,"y":14},{"x":8,"y":15},{"x":7,"y":16},{"x":6,"y":16},{"x":5,"y":15}],"numberEdges":5,"color":colors['purple'],"pos":{"x":-6.362795546185225,"y":0}},{"vertexs":[{"x":8,"y":14},{"x":5,"y":15},{"x":5,"y":14},{"x":6,"y":13},{"x":7,"y":13}],"numberEdges":5,"color":["#4285F4","#355BD8"],"pos":{"x":4.667743229772896,"y":0}},{"vertexs":[{"x":5,"y":13.5},{"x":5,"y":16},{"x":3,"y":16},{"x":3,"y":13.5}],"numberEdges":4,"color":["#F05722","#E3421E"],"pos":{"x":-0.9869173932820559,"y":0}},{"vertexs":[{"x":3,"y":14},{"x":3,"y":16},{"x":1,"y":16},{"x":1,"y":14}],"numberEdges":4,"color":["#E7981D","#E05C16"],"pos":{"x":-0.5474055926315486,"y":0}},{"vertexs":[{"x":10,"y":14},{"x":10,"y":16},{"x":8,"y":16},{"x":8,"y":14}],"numberEdges":4,"color":["#795548","#451F14"],"pos":{"x":-0.8793000471778214,"y":0}}]
);
}//SETUP
lvl5.prototype.step = function(){
levelBuilder.step(this);
}//STEP
iio.AppManager.prototype.activatelvl5 = function(io){
this.level = new iio.lvl5(io);
return this.level;
}
})();