-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
77 lines (68 loc) · 1.59 KB
/
index.html
File metadata and controls
77 lines (68 loc) · 1.59 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
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<style media="screen">
body {
margin: 0;
background-color: #72bb53;
}
canvas {
display: block;
margin: 0 auto;
}
.speed-wrapper {
position: absolute;
right: 40px;
bottom: 30px;
font-size: 30px;
}
.speed-info {
display: flex;
}
.circle-title {
margin-top: -7px;
margin-bottom: 12px;
}
.circle-info .circle {
text-align: left;
}
.circles {
width: 100px;
margin-top: 32px;
font-size: 18px;
}
.sources {
display: none;
}
</style>
<div class="sources">
<img id="img-player" src="assets/car.png" alt="">
<img id="img-road" src="assets/road.jpg" alt="">
<img id="img-enemy" src="assets/enemy.png" alt="">
<img id="img-tree" src="assets/tree.png" alt="">
<img id="img-explosprite" src="assets/explosprite.png" alt="">
</div>
<div id="app">
<div class="wrapper">
<canvas id="canvas"></canvas>
<div class="speed-wrapper">
<div class="speed-info">
<div id="speed"></div>
<div> km/h</div>
</div>
</div>
</div>
</div>
<script src="config.js" defer></script>
<script src="actors.js" defer></script>
<script src="helpers.js" defer></script>
<script src="road.js" defer></script>
<script src="index.js" defer></script>
</body>
</html>