-
Notifications
You must be signed in to change notification settings - Fork 1
/
game.html
111 lines (107 loc) · 4.67 KB
/
game.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
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Play a Guitar Hero like, funny and rythmed game in just 90 seconds. Choose your difficulty, tap on rhythm and beat your own score !">
<title>Rock'Quest | Play a rock and rhythmed adventure</title>
<link rel="shortcut icon" type="image/png" href="img/logo.png" />
<link rel="stylesheet" type="text/css" media="screen and (max-width: 767.99px)" href="css/mobile.css">
<link rel="stylesheet" type="text/css" media="screen and (min-width: 768px)" href="css/desktop.css">
<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=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap"
rel="stylesheet">
</head>
<body class="body-game">
<header class="header">
<nav class="navbar">
<a href="index.html"><img src="img/logo.png" alt="logo" class="logo"></a>
<ul class="nav-menu">
<li class="nav-item nav-img">
<a href="game.html" class="nav-link"><button class="nav-play-btn">Play</button><span
class="play-nav-link">Play</span></a>
</li>
<li class="nav-item">
<a href="how-to-play.html" class="nav-link">How to play</a>
</li>
<li class="nav-item">
<a href="leaderboard.html" class="nav-link">Leaderboard</a>
</li>
<li class="nav-item">
<a href="about-us.html" class="nav-link">About us</a>
</li>
</ul>
<div class="hamburger">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</div>
</nav>
</header>
<div class="game">
<div class="menu-left">
<h1>ROCK'<br />QUEST</h1>
<div class="game-score">Your score :<span class="player-score">0</span></div>
<div class="game-countdown">Time left :
<span class="player-score" id="countdownTextDesktop">90</span>
</div>
</div>
<div class="game-screen">
<div class="launch-game-popup">
<h2>Choose your difficulty</h2>
<div class="launch-game-btn">
<button id="launch-btn-easy" class="launch-btn">Easy</button>
<button id="launch-btn-medium" class="launch-btn">Medium</button>
<button id="launch-btn-hard" class="launch-btn">Hard</button>
</div>
</div>
<div class="launch-game-countdown">
<p class="countdown">3</p>
</div>
<div class="mobile-popup">
<div class="mobile-element">
Your score : <span class="player-score-mobile">0</span>
</div>
<div class="mobile-element">
Time left : <span id="countdownTextMobile">90</span>
</div>
</div>
<div class="end-game-popup">
<h2>Your score</h2>
<p class="end-played-score"></p>
<div class="end-game-btn">
<a href="game.html"><button class="launch-btn">Play again</button></a>
<a href="index.html"><button class="launch-btn">Quit game</button></a>
</div>
</div>
<div class="tracks">
<div id="noteS" class="track">
<div class="receptor"></div>
</div>
<div id="noteD" class="track">
<div class="receptor"></div>
</div>
<div id="noteK" class="track">
<div class="receptor"></div>
</div>
<div id="noteL" class="track">
<div class="receptor"></div>
</div>
</div>
<div class="buttons">
<div class="button-s"><span id="S">S</span></div>
<div class="button-d"><span id="D">D</span></div>
<div class="button-k"><span id="K">K</span></div>
<div class="button-l"><span id="L">L</span></div>
</div>
</div>
<div class="menu-right">
</div>
</div>
<script src="js/script.js"></script>
<script src="js/game.js"></script>
</body>
</html>