-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
267 lines (245 loc) · 10 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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Ludo Board Game v1.0</title>
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="icon.png" type="image/png"/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.0.0/animate.min.css"
/>
</head>
<body>
<audio id="diceSound">
<source src="dice.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<audio id="killedSound">
<source src="killed.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<audio id="winSound">
<source src="win.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<audio id="inoutSound">
<source src="inout.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<audio id="stepSound">
<source src="step.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<div class="fixed">
<div class="welcome">
<div class="setting">
<div class="logo">
<img src="icon.png" class="logo">
</div>
<div class="name">
<input type="text" class="ri" placeholder="Red player name...">
<input type="text" class="gi" placeholder="Green player name...">
<input type="text" class="yi" placeholder="Yellow player name...">
<input type="text" class="bi" placeholder="Blue player name..."><br>
<button class="play">Play</button><br>
<span class="note">if only two players playing enter only two names</span>
</div>
<div class="footer">
Made by Akky Srivastava Akash with ❤
</div>
</div>
</div>
<div class="mainframe">
<div class="diceboard">
<div class="info">
<span class="playername">
Player 1
</span>
<div class="r-dice" onclick="dice(this,0)">
0
</div>
</div>
<div class="info">
<div class="b-dice" onclick="dice(this,3)">
0
</div>
<span class="playername">
Player 4
</span>
</div>
</div>
<div class="mdiceboard">
<div class="info">
<span class="mplayername">
Player 1
</span>
<div class="r-dice" onclick="dice(this,0)">
0
</div>
</div>
<div class="info">
<span class="mplayername">
Player 2
</span>
<div class="g-dice" onclick="dice(this,1)">
0
</div>
</div>
</div>
<div class="ludoboard">
<div class="red">
<div class="playerzone">
<div class="player"><span onclick="movered(this,0)" class="rp r material-icons">stars</span></div>
<div class="player"><span onclick="movered(this,1)" class="rp r material-icons">stars</span></div>
<div class="player"><span onclick="movered(this,2)" class="rp r material-icons">stars</span></div>
<div class="player"><span onclick="movered(this,3)" class="rp r material-icons">stars</span></div>
</div>
</div>
<div class="astep step"></div>
<div class="astep step"></div>
<div class="astep step"></div>
<div class="green">
<div class="playerzone">
<div class="player"><span onclick="movegreen(this,0)" class="rp g material-icons">stars</span></div>
<div class="player"><span onclick="movegreen(this,1)" class="rp g material-icons">stars</span></div>
<div class="player"><span onclick="movegreen(this,2)" class="rp g material-icons">stars</span></div>
<div class="player"><span onclick="movegreen(this,3)" class="rp g material-icons">stars</span></div>
</div>
</div>
<div class="astep step"></div>
<div class="astep greensafe"></div>
<div class="astep gstop"></div>
<div class="astep step rstop"></div>
<div class="astep greensafe"></div>
<div class="astep step"></div>
<div class="astep step"></div>
<div class="astep greensafe"></div>
<div class="astep step"></div>
<div class="astep step"></div>
<div class="astep greensafe"></div>
<div class="astep step"></div>
<div class="astep step"></div>
<div class="astep greensafe"></div>
<div class="astep step"></div>
<div class="astep step"></div>
<div class="astep rstop"></div>
<div class="astep step"></div>
<div class="astep step"></div>
<div class="astep step"></div>
<div class="astep step"></div>
<div class="centerbox"></div>
<div class="astep step"></div>
<div class="astep step"></div>
<div class="astep step"></div>
<div class="astep step gstop"></div>
<div class="astep step"></div>
<div class="astep step"></div>
<div class="astep step"></div>
<div class="astep redsafe"></div>
<div class="astep redsafe"></div>
<div class="astep redsafe"></div>
<div class="astep redsafe"></div>
<div class="astep redsafe"></div>
<div class="astep yellowsafe"></div>
<div class="astep yellowsafe"></div>
<div class="astep yellowsafe"></div>
<div class="astep yellowsafe"></div>
<div class="astep yellowsafe"></div>
<div class="astep step"></div>
<div class="astep step"></div>
<div class="astep step"></div>
<div class="astep step bstop"></div>
<div class="astep step"></div>
<div class="astep step"></div>
<div class="astep step"></div>
<div class="astep step"></div>
<div class="astep step"></div>
<div class="astep step"></div>
<div class="astep step"></div>
<div class="astep ystop"></div>
<div class="astep step"></div>
<div class="blue">
<div class="playerzone">
<div class="player"><span onclick="moveblue(this,0)" class="rp b b material-icons">stars</span></div>
<div class="player"><span onclick="moveblue(this,1)" class="rp b b material-icons">stars</span></div>
<div class="player"><span onclick="moveblue(this,2)" class="rp b b material-icons">stars</span></div>
<div class="player"><span onclick="moveblue(this,3)" class="rp b b material-icons">stars</span></div>
</div>
</div>
<div class="astep step"></div>
<div class="astep bluesafe"></div>
<div class="astep step"></div>
<div class="yellow">
<div class="playerzone">
<div class="player"><span onclick="moveyellow(this,0)" class="rp y material-icons">stars</span></div>
<div class="player"><span onclick="moveyellow(this,1)" class="rp y material-icons">stars</span></div>
<div class="player"><span onclick="moveyellow(this,2)" class="rp y material-icons">stars</span></div>
<div class="player"><span onclick="moveyellow(this,3)" class="rp y material-icons">stars</span></div>
</div>
</div>
<div class="astep step"></div>
<div class="astep bluesafe"></div>
<div class="astep step"></div>
<div class="astep step"></div>
<div class="astep bluesafe"></div>
<div class="astep step"></div>
<div class="astep step"></div>
<div class="astep bluesafe"></div>
<div class="astep step ystop"></div>
<div class="astep bstop"></div>
<div class="astep bluesafe"></div>
<div class="astep step"></div>
<div class="astep step"></div>
<div class="astep step"></div>
<div class="astep step"></div>
</div>
<div class="diceboard">
<div class="info">
<span class="playername">
Player 2
</span>
<div class="g-dice" onclick="dice(this,1)">
0
</div>
</div>
<div class="info">
<div class="y-dice" onclick="dice(this,2)">
0
</div>
<span class="playername">
Player 3
</span>
</div>
</div>
<div class="mdiceboard">
<div class="info">
<div class="b-dice" onclick="dice(this,3)">
0
</div>
<span class="mplayername">
Player 4
</span>
</div>
<div class="info">
<div class="y-dice" onclick="dice(this,2)">
0
</div>
<span class="mplayername">
Player 3
</span>
</div>
</div>
</div>
<script>
// $stepcount = document.getElementsByClassName("astep");
// for(i=0;i<$stepcount.length;i++){
// $stepcount[i].innerHTML=i;
// }
</script>
<script src="game.js"></script>
</div>
</body>
</html>