-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
193 lines (192 loc) · 8.46 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Slides: sliding Puzzle Game</title>
<link rel="stylesheet" href="style.css">
<script src="https://kit.fontawesome.com/61bef7b685.js" crossorigin="anonymous"></script>
</head>
<body>
<audio id="clickSound" style="display: none;">
<source src="Sound/click.mp3" type="audio/mpeg">
</audio>
<div class="welcome-screen-container">
<div class="welcome">
<h1 class="game-title">
Slides
</h1>
<h2 class="game-subtitle">A Sliding Puzzle Game</h2>
<button class="start-button">Play</button>
<p>Don't know what to do?</p>
<button class="instructions-button">Instructions</button>
</div>
</div>
<div class="options-container">
<div class="options-page">
<div class="options-top">
<div class="player-info-top">
<button class="back back1">
<i class="fas fa-chevron-left"></i>
</button>
<h2>Input the player name</h2>
<img src="Pictures/user-icon.png" alt="">
<input type="text" id="name" placeholder="(Optional)">
</div>
<div class="difficulty-top">
<button class="back back2">
<i class="fas fa-chevron-left"></i>
</button>
<button class="easy mode-container">
<div>
<h2>Easy</h2>
<h3>3x3</h3>
</div>
<hr>
<h6>3:00 min</h6>
</button>
<button class="normal mode-container">
<div>
<h2>Normal</h2>
<h3>4x4</h3>
</div>
<hr>
<h6>5:00 min</h6>
</button>
<button class="difficult mode-container">
<div>
<h2>Difficult</h2>
<h3>5x5</h3>
</div>
<hr>
<h6>7:00 min</h6>
</button>
</div>
</div>
<div class="options-bot">
<div class="difficulty-bot">
<h4>Choose the difficulty</h4>
</div>
<div class="player-info-bot">
<button class="save-name">Skip</button>
</div>
</div>
</div>
</div>
<div class="instruction-container">
<div class="instructions">
<button class="left-button" style="display: none;"><i class="fas fa-chevron-left"></i></button>
<button class="right-button"><i class="fas fa-chevron-right"></i></button>
<div class="instructions-top">
<div class="instruction1-top" style="background: url(Pictures/Instructions/Instructions-1.png)"></div>
<div class="instruction2-top" style="background: url(Pictures/Instructions/Instructions-2.png)"></div>
<div class="instruction3-top" style="background: url(Pictures/Instructions/Instructions-3.png)"></div>
<div class="instruction4-top" style="background: url(Pictures/Instructions/Instructions-4.png);"></div>
<div class="instruction5-top" style="background: url(Pictures/Instructions/Instruction-5.png);"></div>
</div>
<div class="instructions-bot">
<div class="instruction4-bot" style="background: rgb(40, 85, 98);"><button class="instruction-back">Back</button></div>
<div class="instruction4-bot" style="background: rgb(78, 27, 80);">Slide and arrange the tiles to their corresponding Positions for you to win the game</div>
<div class="instruction3-bot" style="background: rgb(128, 73, 36);">Solve the picture by moving the parts in the available empty area, Remember: You have to solve it in a specified Duration </div>
<div class="instruction2-bot" style="background: rgb(149, 112, 44);">At the start of the Game, you will be presented a random image with jumbled parts</div>
<div class="instruction1-bot" style="background: rgb(41, 80, 33);">First, You have to choose a difficulty level you want to take (Easy, Normal, Hard). Each have a corresponding game Duration</div>
</div>
</div>
</div>
<main class="game-page">
<div class="countdown-container">
<h6 class="countdown">3</h6>
</div>
<div class="result-container">
<div class="result">
<div class="user-pic"></div>
<h1 class="Result">Success!<h1>
<div class="result-buttons">
<button class="menu"><i class="fas fa-bars"></i></button>
<button class="replay"><i class="fas fa-redo"></i></button>
<button class="Nextlevel"><i class="fas fa-chevron-right"></i></button>
</div>
</div>
</div>
<div class="menu-container">
<div>
<h1>Slides</h1>
<button id="resume">Resume</button>
<button class="menu">Main menu</button>
</div>
</div>
<div class="goal-container">
<div>
<img class="goal-image" src="" alt="">
</div>
</div>
<div class="container">
<div class="about-corner">
<div class="player">
<div class="player-avatar">
<img src="Pictures/user-icon.png" alt="">
</div>
<h2 class="player-name">
Player
</h2>
</div>
<div class="settings">
<button class="restart">
<i class="fas fa-redo"></i>
</button>
<button class="Menu">
<i class="fas fa-bars"></i>
</button>
</div>
<div class="game-stat">
<div id="difficulty">
<div class="icon">
<i class="fas fa-hand-rock"></i>
</div>
<div class="stat">
<h2>Difficulty</h2>
<h3 id="game-level">Easy</h3>
</div>
</div>
<div id="timer">
<div class="icon">
<i class="fas fa-clock"></i>
</div>
<div class="stat">
<h2>Timer</h2>
<h3 id="Time-left">0</h3>
</div>
</div>
<div id="moves">
<div class="icon">
<i class="fas fa-hand-pointer"></i>
</div>
<div class="stat">
<h2>Moves</h2>
<h3 id="total-moves">0</h3>
</div>
</div>
</div>
<div class="goal">
<button class="btn-goal"></button>
</div>
</div>
<div class="game-corner">
<div class="game-header">
<h1>Slides</h1>
<div class="shape"></div>
</div>
<div class="game-board">
<div class="puzzle-board">
</div>
</div>
</div>
</div>
</main>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.5/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.5/Flip.min.js"></script>
<script src="script.js"></script>
</body>
</html>