-
Notifications
You must be signed in to change notification settings - Fork 1
/
level2.html
executable file
·32 lines (28 loc) · 1.15 KB
/
level2.html
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
<!DOCTYPE html>
<head>
<title>Games and Learning</title>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script src="zig.js"></script>
<script src="game.js"></script>
<link rel="stylesheet" href="style.css">
<style>
body{
background-image: url('img/background2.png');
background-repeat:no-repeat;
}
</style>
</head>
<body>
<script>
//Start from 1 (world is a bad name, I actually mean level but that's already used, P. Karlton acknowledged it's hard to name things)
var world = 2;
//Difficulty is in pixels and describes radius of the circle around the middle point of the image
var difficulty = 100;
//The size of the images in pixels of one side
var imageSizex = 50;
var imageSizey = 50;
// x-pixel,y-pixel (relative to right top),"pushl"/"pull"
var level = [[100,100,"push"],[500,500,"push"],[300,500,"pull"],[500,100,"pull"],[250,250,"push"],[200,500,"pull"],[500,200,"push"],[400,200,"push"],[100,100,"pull"],[400,200,"pull"],[400,400,"push"],[450,200,"push"]];
</script>
</body>
</html>