-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
34 lines (33 loc) · 788 Bytes
/
index.html
File metadata and controls
34 lines (33 loc) · 788 Bytes
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
<!DOCTYPE html>
<head>
<title>Space Invaders</title>
<meta charset='utf-8' />
<meta http-equiv='X-UA-Compatible' content='IE=edge' />
<meta name='viewport' content='width=device-width, initial-scale=1' />
</head>
<html>
<body>
<stage id="stage">
<canvas id ="game-layer" width="1024" height="768"></canvas>
<canvas id ="background-layer" width="1024" height="768"></canvas>
</stage>
<style>
#stage {
width: 1024px;
height: 768px;
position: relative;
border: 2px solid black;
}
canvas {
position: absolute;
}
#game-layer {
z-index: 2;
}
#background-layer {
z-index: 1;
}
</style>
<script src="app.js" defer></script>
</body>
</html>