-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex_2.html
More file actions
44 lines (36 loc) · 947 Bytes
/
index_2.html
File metadata and controls
44 lines (36 loc) · 947 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
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" name="viewport" content="width=1280,height=720, initial-scale=1.0" />
<title>MuiltCanvasTest</title>
<div id="stage">
<canvas id="ui-layer" width="1280" height="720"></canvas>
<canvas id="game-layer" width="1280" height="720"></canvas>
<canvas id="background-layer" width="1280" height="720"></canvas>
</div>
<style>
#stage {
width: 1280px;
height: 720px;
position: relative;
border: 2px solid rgb(182, 246, 7);
background: rgba(22,46,120,1);
}
canvas {
position: absolute;
}
#ui-layer {
z-index: 3;
}
#game-layer {
z-index: 2;
}
#background-layer {
z-index: 1;
}
</style>
</head>
<body>
<script src="./main.js"></script>
</body>
</html>