-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaze2.html
241 lines (236 loc) · 11.8 KB
/
maze2.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="./Images/mazeicnw.png" type="image/png">
<link rel="stylesheet" href="./Styles/mazestyle.css">
<title>Maze</title>
</head>
<body class="dark" id="full">
<t id="hide">
<div id="panel">
<div id="mydivheader">
Instructions:
<span id="x" class="close" onclick="hidePanel('hide')">×</span>
</div>
<div id="infor">
<p id="info">
<span class="bullet">◉</span>
Welcome!
<br>
<span class="bullet">◉</span>This Page is not fully made yet!! So there can be addition is
the future!!<br>
<span class="bullet">◉</span>Try Solving the Maze by reaching to the finish point in the
given time duration. Use your arrow keys to move through the
maze.
<br>
<span class="bullet">◉</span>The Maze Generation is done through <span id="ze">Recursive
Backtracking Algorithm.</span></span>
<br>
<span class="bullet">◉</span>You can also Save it as an Image in JPEG/PNG format and
print it, and Solve later!!
<br>
<span class="bullet">◉</span>The game will start once you close this Instruction Panel.
<br>
<span class="bullet">◉</span>To adjust the Screen press "<img
src="https://img.icons8.com/office/20/000000/ctrl.png" alt="Ctrl"> + −", 80% for full view.
<br>
<span class="bullet">◉</span>
NOTE:
<div id="toleft">
Use laptop or PC for full experience.
<br>
Enjoy!!
<br>
Click <u>Enter</u> to get the Instruction Panel
<br>
Click <u>m</u> to Mute the music
<br>
|| You can move around this Instructions Panel ||
</div>
</p>
</div>
<button id="skip" onclick="hidePanel('hide')">Skip</button>
<div class="btnside">
<button id="next" onclick="Prevpage()">◀︎</button>
<button id="prev" onclick="Nextpage()">▶︎</button>
</div>
<center>
<div id="pageno">1/5</div>
</center>
</div>
</div>
</t>
<div id="crd">
<div id="mydivheader">Score Board:
<div id="crdheader">Click here to move around</div>
<span id="x" class="close" onclick="over()">×</span>
</div>
<div id="mydivheader" class="side">Timings:</div>
<span>Total Time Elapsed: <span id="te"></span></span>
<br>
<div id="mydivheader" class="side">Scores:</div>
<span id="mot">Total Score: <span id="ts"></span></span>
<span id="mlt">Best Score in a single levels: <span id="lst">0</span></span>
<br>
<h2 id="verdict">You Won</h2>
<br>
<h4>||You can post your score below on comments or give your feedback||</h4>
<h4>Click on the cross to close this Session</h4>
<div class="side" id="mydivheader">
<button id="ri" onclick="showCredits()" style="font-size: .8rem;">See Credits</button>
</div>
</div>
<div id="crde2">
<div id="mydivheader">Credits:
<div id="crde2header">Click here to move around</div>
<span id="x" class="close" onclick="hidePanel('crde2')">×</span>
</div>
<marquee behavior="scroll" direction="up" scrollamount="3" height="100%">
<!-- Marquee ins't working for Chrome. As its pretty out dated-->
<div id="mydivheader" class="side">Code:</div>
<br>
<img src="./Images/knight.gif" alt="Knight">
<p id="credit">Algorithm: <span id="ze">Recursive Backtracking.</span>
<p id="credit">Code By : ARKARAJ <br>
Git Hub: <a href="https://github.com/Arkaraj/mazesolver"
target="_blank">https://github.com/Arkaraj/mazesolver</a></p>
<div id="mydivheader" class="side">Images:</div>
<br>
<p id="credit">
Most Images: <a href="https://www.pixilart.com" target="_blank">https://www.pixilart.com</a> and
<a href="https://opengameart.org/" target="_blank">https://opengameart.org/</a>
<br>
<a href="https://www.shutterstock.com/" target="_blank">Shutterstock</a> and <a
href="https://www.pinterest.com/" target="_blank">Pintrest</a>
<br>
<br>
Dragon from: <a href="https://www.pngitem.com/" target="_blank">https://www.pngitem.com/</a>
<br>
Lava Tile: <a href="https://www.instagram.com/ajaytitus24/?hl=en" target="_blank">Ajay Titus</a>
</p>
<div id="mydivheader" class="side">Music:</div>
<br>
<p id="credit">
Most of the music is from: <a href="https://www.youtube.com/" target="_blank">YouTube</a>
<br>
Dragon background: Hollow Knight Boss Battle</p>
<div id="mydivheader" class="side">Special Mention:</div>
<br>
<p id="credit">Comments: Disqus
<br>
YouTube API
</p>
</marquee>
<p id="hrt">Made with ❤️ and JavaScript</p>
</div>
<div id="crdp2" class="duo" style="text-align: center;">
<div id="mydivheader">Settings:
<span id="x" class="close" onclick="hideSetting('crdp2')">×</span>
<div id="crdp2header">Click here to move around</div>
</div>
<br><br><br>
<h3>Select Game mode</h3>
<span class="store"><button id="bnx" onclick="hideSetting('crdp2')">Story Mode</button>
<button id="bnx" onclick="multiPlayerGame()">Two Players</button></span>
<hr>
Sound: <span id="mute">ON</span>(Press m to on and off)
<br>
<button id="bn" onclick="over()">New Game?</button>
</div>
<div id="crdp" style="text-align: center;">
<div id="mydivheader">Status:
<span id="x" class="close" onclick="hidePause('crdp')">×</span>
<div id="crdpheader">Click here to move around</div>
</div>
<br>
<h3>PAUSED!!</h3>
Click on the cross/Press shift again to Resume this Session
<hr>
Tip: Click Enter to get the Instruction Panel
</div>
<center>
<h2>Solve MAZE</h2>
<canvas id="noscript" height="2000" width="1140"></canvas>
<a style="float: left;
background: white;
color: black;
cursor: url(./Images/pointer2.png),pointer;
text-decoration: none;
" href="Maze-solver.html">
<img src="https://img.icons8.com/ios/24/000000/home-page.png" alt="Home Page" />Home Page</a>
<br><br>
<div class='bgd'>
<span id="times"><span id="timer">Timer: 5:00</span></span>
<span id="cyr">Floor: <span id="lvl">1/4</span></span>
<span id="cyr">Best Score: <span id="higsc"></span></span>
<span id="cyr">Current Score: <span
id="curscr"></span></span>
<span id='cyr'>Pickaxe: <span
id="piaxe">0</span></span>
<span id='cyre' style="display: none;">Shuriken: <span id="blade">0</span></span>
<span id='cyrh' style="display: none;">Health: <progress id="bar" value="100" max="100"
min="0">100%</progress><span id="hbar">100</span>/100</span>
<span id='cypl'>Move P2: <span id="show2">0</span></span>
<span id='spac'>Moves: <span id="show">0</span></span>
</div>
<canvas id="mazeIntro" width="600" height="853"></canvas>
<canvas id="solveMaze" width="1420" height="740"></canvas>
<div id="phoneButtons">
<!-- <button class="pb" ontouchstart="hearu()" ontouchend="releaseu()">w</button>
<button class="pb" ontouchstart="hearu()" ontouchend="releaseu()">▲</button> -->
<!-- <button class="pb" ontouchstart="hearr()" ontouchend="releaser()">d</button>-->
<button class="pb" ontouchstart="hearl()" ontouchend="releasel()">◀︎</button>
<!-- <button class="pb" ontouchstart="hearx()" ontouchend="releasex()">x</button>
<button class="pb" ontouchstart="hearr()" ontouchend="releaser()">▶︎</button>
<button class="pb" ontouchstart="hearl()" ontouchend="releasel()">a</button> -->
<button class="pb" ontouchstart="heard()" ontouchend="released()">▼</button>
<!-- <button class="pb" ontouchstart="heard()" ontouchend="released()">s</button> -->
</div>
<div id="phoneButtons2">
<!-- <button class="pb" ontouchstart="hearu()" ontouchend="releaseu()">w</button>-->
<button class="pb" ontouchstart="hearu()" ontouchend="releaseu()">▲</button>
<!-- <button class="pb" ontouchstart="hearr()" ontouchend="releaser()">d</button>-->
<button class="pb" ontouchstart="hearr()" ontouchend="releaser()">▶︎</button>
<button class="pb" ontouchstart="hearx()" ontouchend="releasex()">x</button>
</div>
<div class="btns2">
<button id="bt1" style="background:url(./Images/player.png) no-repeat"></button>Start
<button id="bt4" style="background:url(./Images/stairs.png) no-repeat"></button>Finish
</div>
</center>
<button id="dwn" onclick="Save()"><img src="https://img.icons8.com/ios/24/000000/downloads-folder.png" />Download as
Image</button>
<!-- This is a work on progress -->
<br>
<iframe width="0" height="0" src="" frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<!-- 560x315 -->
<hr>
<h3>Coming Soon...</h3>
<hr>
<div id="disqus_thread"></div>
<script>
var disqus_config = function () {
this.page.url = "https://mazesolveark.herokuapp.com/maze2.html";
this.page.identifier = "maze2.html";
};
(function () { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
s.src = 'https://https-mazesolveark-herokuapp-com-maze2-html.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by
Disqus.</a></noscript>
<footer>
Contact: arkaraj2017@gmail.com<br><br>
©2020 ARKARAJ
</footer>
<script id="dsq-count-scr" src="//mazesolveark.herokuapp.com.maze2.html.disqus.com/count.js" async></script>
</body>
<script src="./recmaze.js"></script>
</html>