-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
64 lines (63 loc) · 2.6 KB
/
Copy pathindex.html
File metadata and controls
64 lines (63 loc) · 2.6 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Overload</title>
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
<h1>Welcome To Overload!</h1>
<div class="selector">
<input type="number" name="difficulty" id="difficulty-input" placeholder="Choose Your Difficulty">
<input type="number" name="amount-of-columns" id="amount-of-columns" placeholder="Amount Of Columns">
<input type="number" name="amount-of-rows" id="amount-of-rows" placeholder="Amount Of Rows">
</div>
<button class="rules-button">Rules</button>
<button class="stats-button">STATS</button>
<div id="time">
<span class="digit" id="hr">
00</span>
<span class="txt">:</span>
<span class="digit" id="min">
00</span>
<span class="txt">:</span>
<span class="digit" id="sec">
00</span>
<span class="txt">:</span>
<span class="digit" id="count">
00</span>
</div>
<div class="modal-overlay" id="rules-overlay"></div>
<div class="modal" id="rules-modal">
<button class="close-modal" id="close-rules">×</button>
<h3>Rules:</h3>
<p>Click = Explosion:</p>
<p>Every click on a reactor does two things:</p>
<p>Reduces its own value by 1.</p>
<p>Forces all adjacent reactors (up/down/left/right) to also decrease by 1.</p>
<p>One exception: This happens every time, except when the clicked reactor is 0.</p>
<p>Chain Reactions:</p>
<p>If a neighbor reaches 0 from the explosion, it does NOT trigger additional explosions (unless clicked).</p>
<p>(Clarification: Unlike classic Minesweeper, explosions only happen on your clicks, not automatically when a reactor hits 0.)</p>
<p>Goal:</p>
<p>Reduce every reactor to exactly 0 in the fewest clicks possible.</p>
</div>
<div class="modal-overlay" id="stats-overlay"></div>
<div class="modal" id="stats-modal">
<button class="close-modal" id="close-stats">×</button>
<div id="stat-text">
<h3>Statistics:</h3>
<p>Clicks Made:</p>
<p>Games Won:</p>
<p>Games Lost:</p>
<p>Total Time Spent Ingame:</p>
</div>
</div>
<button id="start-button">START</button>
<div id="level-container"></div>
<button id="reset-button">Reset Level</button>
</body>
<script type="module" src="script.js"></script>
</html>