-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
66 lines (60 loc) · 1.52 KB
/
Copy pathindex.html
File metadata and controls
66 lines (60 loc) · 1.52 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Permissions-Policy" content="interest-cohort=()">
<link rel="preconnect" href="https://rsms.me/">
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
<link href="style.css" rel="stylesheet">
<link rel="apple-touch-icon" sizes="180x180" href="favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicons/favicon-16x16.png">
<link rel="manifest" href="favicons/site.webmanifest">
<title>Blitz-GL</title>
<style>
html,
body {
margin: 0;
padding: 0;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
background-color: rgb(38, 39, 49);
}
#game {
display: flex;
justify-content: center;
align-items: center;
/* width: min(100vw, calc(100vh * (340 / 220)));
height: min(100vh, calc(100vw * (220 / 340))); */
width: calc(340px * 2);
height: calc(220px * 2);
position: relative;
}
canvas {
background: #000000;
width: 100%;
height: 100%;
image-rendering: pixelated;
display: block;
}
#game-ui,
#editor-ui {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
}
</style>
</head>
<body>
<div id="game">
<div id="game-ui"></div>
</div>
<div id="editor-ui"></div>
<script type="module" src="src/main.tsx"></script>
</body>
</html>