-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
44 lines (35 loc) · 1.17 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
<!DOCTYPE html>
<html>
<head>
<title>BRICK BREAKER GAME</title>
<meta charset="UTF-8" />
<style>
#GameScreen {
border: 1px solid black;
}
img {
display: none;
}
@font-face {
font-family: "Voltaire";
src: url("https://fonts.googleapis.com/css?family=Voltaire");
}
</style>
<script type="module" src="/src/index.js"></script>
<script type="module" src="/src/game.js"></script>
<script type="module" src="/src/paddle.js"></script>
<script type="module" src="/src/ball.js"></script>
<script type="module" src="/src/brick.js"></script>
<script type="module" src="/src/detectCollision.js"></script>
<script type="module" src="/src/levels.js"></script>
<script type="module" src="/inputHandler.js"></script>
</head>
<body>
<img src="/assets/images/ball.png" id="imgBall" />
<img src="/assets/images/brick.png" id="imgBrick" />
<canvas id="GameScreen" width="800px" height="600px"></canvas>
<br />
<button type="button" id="startButton">START GAME</button>
<button type="button" id="exitButton">EXIT GAME</button>
</body>
</html>