-
Notifications
You must be signed in to change notification settings - Fork 2
/
game.html
107 lines (92 loc) · 3.01 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<html>
<head>
<title>3D Pacman</title>
<link rel="shortcut icon" href="favicon.png">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/cannon.js/0.6.2/cannon.js"></script>
<script type="module" src="3d-pacman.js"></script>
<script type = "text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://code.createjs.com/1.0.0/tweenjs.min.js"></script>
<link rel="stylesheet" type="text/css" href="./css/loading-bar.min.css"/>
<script type="text/javascript" src="./js/loading-bar.min.js"></script>
<!-- Disable Cache -->
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
<style type="text/css">
body {
margin: 0;
padding: 0;
overflow: hidden;
font-family: Monospace;
}
canvas {
outline: none;
}
</style>
<!-- 글꼴 적용 -->
<meta charset="utf-8">
<link href="font/fontStyle.css" rel="stylesheet">
<!-- 배경색 적용 -->
<style>
body {
background-color: #000000;
}
</style>
<!-- 여러 가지 적용 -->
<style>
#stage {
text-align: left;
float: left;
width: 33.3%;
margin-top: 12px;
margin-bottom: 8px;
color: #ffd400;
font-size: 2em;
}
#timer {
margin-top: 7px;
text-align: center;
float: left;
width: 33.3%;
}
#score {
text-align: right;
float: left;
width: 33.3%;
margin-top: 12px;
margin-bottom: 8px;
color: #ffd400;
font-size: 2em;
}
#loading {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: #000000;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
font-size: xx-large;
font-family: sans-serif;
color: #FFFFFF;
}
</style>
</head>
<body>
<div id="stage"> <span id="stageNum" style = "padding-left: 10px">STAGE 1</span> </div>
<div id = "timer">
<img id="timerimage" src = "./image/timerStartEnd.png" style="width: 50; height: 50;">
</div>
<div id="score"> <span id="scoreNum" style = "padding-right: 10px">SCORE 0</span> </div>
<div id="loading" hidden>
<!-- <div class="lds-facebook"><div></div><div></div><div></div></div> -->
<div id="loadingbar" data-preset="bubble" class="ldBar label-center" data-value="0"></div>
</div>
<canvas id="gl-canvas" width="1920" height="1080" tabindex="0">
Oops ... your browser doesn't support the HTML5 canvas element
</canvas>
</body>
</html>