-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
43 lines (43 loc) · 1.36 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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=VT323&display=swap" rel="stylesheet">
<style>
html, body {
margin: 0;
padding: 0;
font-family: sans-serif;
overflow: hidden;
position: relative;
}
canvas {
background-color: black;
aspect-ratio: 16/9;
max-height: 100vh;
max-width: 100vw;
width: auto;
height: 100%;
display: block;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
</style>
</head>
<body>
<!--
<audio src="sounds/ship_fire.wav" id="sfx_ship_fire"></audio>
<audio src="sounds/ship_explosion.wav" id="sfx_ship_explosion"></audio>
<audio src="sounds/enemy_fire.wav" id="sfx_enemy_fire"></audio>
<audio src="sounds/explosion.wav" id="sfx_explosion"></audio>
-->
<canvas></canvas>
<script src="dist/game.js"></script>
</body>
</html>