-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.html
66 lines (66 loc) · 1.37 KB
/
game.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html>
<head>
<title>Space Shooter Demo</title>
<style>
body{
align:center;
}
canvas {
position: absolute;
top: 0px;
left: 0px;
background: transparent;
}
#background {
z-index: -10;
}
#glass{
position: absolute;
z-index:-3
}
#corners{
z-index: -2;
}
#faia{
z-index: 2;
}
#main {
z-index: 3;
}
#sardina {
z-index: 1;
}
#overlay{
z-index: 10;
}
</style>
</head>
<body>
<div>
<!-- The canvas for the panning background -->
<canvas id="background" width="500" height="460">
Your browser does not support canvas. Please try again with a different browser.
</canvas>
<!-- The canvas for the panning background -->
<canvas id="corners" width="500" height="460">
Your browser does not support canvas. Please try again with a different browser.
</canvas>
<!-- The canvas for Forns -->
<canvas id="main" width="500" height="460">
</canvas>
<!-- -->
<canvas id="faia" width="500" height="460">
</canvas>
<canvas id="overlay" width="500" height="460">
</canvas>
<!-- The canvas the ship uses (can only move up
one forth the screen.) -->
<canvas id="sardina" width="500" height="460">
</canvas>
<img id="glass" src="imgs/glass.png"/>
</div>
<script src="forn-coord.js"></script>
<script src="game.js"></script>
</body>
</html>