-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
37 lines (37 loc) · 1.16 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css" />
<script src="https://cdn.jsdelivr.net/npm/p5@1.0.0/lib/p5.js"></script>
<title></title>
</head>
<body>
<h1>AUTOBAHN TURBO MANIAC</h1>
<div id="winmsg" class="hidden">
<h2>YOU WON!</h2>
</div>
<div id="gameover-msg" class="hidden">
<h2>GAME OVER</h2>
</div>
<div id="canvas"></div>
<div id="timer"></div>
<div>
<button id="start" >START</button>
</div>
<div>
<button onClick="window.location.reload()" id="reset">RESET</button>
</div>
<!-- </div>
<button id="hard">Hard</button>
</div> -->
<script src="./src/background.js"></script>
<script src="./src/player.js"></script>
<script src="./src/obstacles.js"></script >
<script src="./src/game.js"></script>
<script src="./src/main.js"></script>
</body>
</html>