forked from gaomeng1900/canvas-billiard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (46 loc) · 1.09 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Billiard</title>
<style>
body {
margin: 0;
padding: 0;
background-color: #121212;
height: 100%;
width: 100%;
}
canvas {
box-shadow: 0 0 10px rgba(0,0,0,0.3);
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
#helper {
pointer-events:none;
}
</style>
</head>
<body>
<canvas id="desk"></canvas>
<canvas id="playZone"></canvas>
<canvas id="helper"></canvas>
<!-- 配置文件 -->
<script src="./conf.js"></script>
<!-- 基类 -->
<script src="./Base.js"></script>
<!-- 桌球 -->
<script src="./Ball.js"></script>
<!-- 球洞 -->
<script src="./Hole.js"></script>
<!-- 背景 -->
<script src="./Background.js"></script>
<!-- 物理引擎 -->
<script src="./physicsEngine.js"></script>
<!-- 程序入口 -->
<script src="./index.js"></script>
</body>
</html>