-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
97 lines (89 loc) · 3.94 KB
/
index.html
File metadata and controls
97 lines (89 loc) · 3.94 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="google-adsense-account" content="ca-pub-3098196997445204">
<title>Mining Tycoon</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="game-container">
<header>
<h1>Mining Tycoon</h1>
<div class="resources-display">
<div class="resource" id="money">
<span class="resource-icon">💰</span>
<span class="resource-value">$0</span>
</div>
<div class="resource" id="total-money">
<span class="resource-icon">💎</span>
<span class="resource-label">Total Earned:</span>
<span class="resource-value">$0</span>
</div>
<div class="resource" id="energy">
<span class="resource-icon">⚡</span>
<span class="resource-value">100/100</span>
</div>
<div class="resource" id="storage">
<span class="resource-icon">📦</span>
<span class="resource-value">0/100</span>
</div>
<div class="resource" id="inventory-value">
<span class="resource-icon">💵</span>
<span class="resource-label">Inventory Value:</span>
<span class="resource-value">$0</span>
</div>
</div>
</header>
<div class="game-area">
<div class="controls-panel">
<button id="drill-btn" class="control-btn">🔨 Drill</button>
<button id="sell-btn" class="control-btn">💰 Sell Resources</button>
<button id="save-btn" class="control-btn">💾 Save Game</button>
<button id="restart-btn" class="control-btn danger">🔄 Restart Game</button>
<button id="sound-btn" class="control-btn">🔊 Sound: ON</button>
<button id="effects-btn" class="control-btn">✨ Effects: ON</button>
</div>
<div class="mining-area">
<canvas id="mining-canvas" width="600" height="400"></canvas>
<div class="depth-indicator">
<div class="depth-value">Depth: 0m</div>
<div class="layer-value">Layer: 1</div>
</div>
</div>
<div class="side-panel">
<div class="panel-section">
<h2>Inventory</h2>
<div id="inventory-list"></div>
</div>
<div class="panel-section">
<h2>Upgrades</h2>
<div id="upgrades-list"></div>
</div>
<div class="panel-section" id="research-panel">
<h2>Research</h2>
<div class="research-points">Research Points: 0</div>
<div class="research-rate">Generation Rate: 0/s</div>
<div class="research-list"></div>
</div>
</div>
</div>
<div class="notifications" id="notifications"></div>
<!-- Restart confirmation modal -->
<div id="restart-modal" class="modal">
<div class="modal-content">
<h2>⚠️ Restart Game?</h2>
<p>Are you sure you want to restart? All progress will be lost!</p>
<div class="modal-buttons">
<button id="confirm-restart" class="danger">Yes, Restart</button>
<button id="cancel-restart">Cancel</button>
</div>
</div>
</div>
</div>
<script src="resources.js"></script>
<script src="upgrades.js"></script>
<script src="game.js"></script>
</body>
</html>