-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (33 loc) · 937 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BreakOu game</title>
<style>
body {
margin: 0;
padding: 0;
text-align: center;
background-color: black;
}
canvas {
width: -webkit-fill-available;
max-height: 100%;
aspect-ratio: 16/9;
background-color: rgb(23, 23, 23);
position: absolute;
inset: 0;
margin: auto;
}
</style>
<script src="./CanvasItem.js"></script>
<script src="./CanvasBrick.js"></script>
<script src="./CanvasBall.js"></script>
<script src="./CanvasPaddle.js"></script>
</head>
<body>
<canvas id="game" onclick="startGame()" width="1280" height="720"></canvas>
<script src="./script.js"></script>
</body>
</html>