-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
156 lines (150 loc) · 3.68 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
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Enari FPS Engine</title>
<style>
html,
body,
#root {
margin: 0;
padding: 0;
height: 100%;
width: 100%;
overflow: hidden;
background: black;
}
#fps {
position: absolute;
background: rgba(0, 0, 0, 0);
top: 0px;
left: 20px;
font-weight: 400;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
color: white;
}
#crosshair {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
width: 5%;
z-index: 1;
}
canvas {
width: 100%;
height: 100%;
}
#loading {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: black;
color: white;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 2;
animation: glitch 10.45s infinite;
}
#loadingImg {
width: 30%;
border-radius: 5%;
position: relative;
}
@keyframes glitch {
0% {
transform: translate(0);
}
5% {
transform: translate(-5px, 5px) rotate(1deg);
opacity: 1;
}
10% {
transform: translate(-10px, -5px) rotate(2deg);
opacity: 0.8;
}
15% {
transform: translate(5px, 10px) rotate(-1deg);
}
20% {
transform: translate(-5px, -10px) rotate(2deg);
opacity: 0.2;
}
25% {
transform: translate(0) rotate(-1deg);
}
30% {
transform: translate(5px, 5px) rotate(-2deg);
}
35% {
transform: translate(-5px, 10px) rotate(1deg);
}
40% {
transform: translate(10px, -5px) rotate(-2deg);
}
45% {
transform: translate(-10px, 5px) rotate(1deg);
}
50% {
transform: translate(0) rotate(2deg);
opacity: 0.4;
}
55% {
transform: translate(5px, -10px) rotate(-1deg);
}
60% {
transform: translate(-5px, 5px) rotate(2deg);
}
65% {
transform: translate(10px, 5px) rotate(-1deg);
}
70% {
transform: translate(-10px, -5px) rotate(2deg);
}
75% {
transform: translate(0) rotate(-2deg);
opacity: 0.8;
}
80% {
transform: translate(5px, 10px) rotate(1deg);
opacity: 0.6;
}
85% {
transform: translate(-5px, -10px) rotate(-2deg);
}
90% {
transform: translate(-10px, 5px) rotate(1deg);
opacity: 0.4;
}
95% {
transform: translate(10px, -5px) rotate(-2deg);
}
100% {
transform: translate(0);
}
}
</style>
</head>
<body>
<p id="fps"></p>
<!-- -->
<div id="loading">
<h1>Loading...</h1>
<img src="./public/valveLoading.webp" alt="" id="loadingImg" />
</div>
<img id="crosshair" src="crosshair.png" alt="Crosshair" />
<audio autoplay>
<source src="./public/valveLoading.mp3" type="audio/mpeg" />
</audio>
<script type="module" src="/src/main.ts"></script>
</body>
</html>