-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
102 lines (90 loc) · 4.51 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
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Traffic Racer By Fasihnasir</title>
<!-- BOOTSTRAP 5 -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<!-- OUTER CSS -->
<link rel="stylesheet" href="style.css">
<!-- FONT FAMILY -->
<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=Raleway:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
<!-- FONT AWEOMSE -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
<audio id="aud2" autoplay>
<source src="assets/intro.mp3" type="audio/mpeg" >
</audio>
<audio id="aud1">
<source src="assets/crash_sms.mp3" type="audio/mpeg" >
</audio>
<audio id="aui" loop >
<source src="assets/traffic.mp3" type="audio/mpeg" >
</audio>
<div class="container-fluid d-flex justify-content-center align-items-center" id="ins">
<video autoplay loop muted class="col-12">
<source src="assets/video.mp4" class="col-12" type="video/mp4">
</video>
<div class="col-lg-5 col-8 justify-content-center align-items-center text-center d-flex flex-column" id="starcol" >
<h3>Click the Start Game button below to begin!</h3>
<select name="" id="speed" class="col-8">
<option value="Game Spedd" disabled selected readonly>Game Speed</option>
<option value="1500" >Easy</option>
<option value="1000">Normal</option>
<option value="500">Hard</option>
</select>
<select name="" id="carcol" class="col-8">
<option value=""disabled selected readonly>Car Color</option>
<option value="assets/Car.png" >Red Color</option>
<option value="assets/car1.png" >Orange Color</option>
<option value="assets/car2.png" >Green Color</option>
<option value="assets/car3.png">Blue Color</option>
<!-- <option value="url(assets/car${4}.png)">Hard</option> -->
</select>
<div class="my-2 text-start col-8 px-1 align-items-center d-flex flex-row justify-content-between">
<span>Mute Sound </span> <i class="fas fa-volume-mute text-start " title="Mute Sound" style="font-size: 24px;" id="mut"></i>
</div>
<button class="str" id="start1">Start Game</button>
</div>
</div>
<div class="container-fluid" id="dnone">
<div class="position-fixed top-0 col-lg-2 col-4" id="score">
<h3>Score: <span id="score1">100</span> </h3>
<h3>Coins: <span id="coins">00</span> </h3>
<!-- <button id="mut">Mute Sound</button> -->
</div>
<div class="row justify-content-center align-items-center">
<div class="" id="road">
<div class="car" id="car">
<img src="assets/Car.png" id="imgcrt" class="img-fluid" alt="">
</div>
</div>
<div class="arrow col-3 d-flex flex-column justify-content-center align-items-center flex-row">
<!-- <div>
<i class="fa-solid fa-circle-up" id="up"></i>
</div> -->
<div class="d-flex flex-row justify-content-around col-12">
<i class="fa-solid fa-circle-left px-2 float-start" id="left"></i>
<i class="fa-solid fa-circle-right px-2 float-end" id="right"></i>
</div>
<!-- <div>
<i class="fa-solid fa-circle-down" id="bottom"></i>
</div> -->
</div>
<div id="re" class="col-10 col-lg-5 d-flex justify-content-center align-items-center flex-column">
<!-- <h3>Your Score Is :</h3>
<h3>Your Coin Is :</h3>
<button id="rest">Play Again</button> -->
</div>
</div>
<!-- <button onclick="resetyy()"></button> -->
</div>
</div>
<script src="app.js"></script>
<!-- <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script> -->
</body>
</html>