-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
42 lines (41 loc) · 1.45 KB
/
Copy pathindex.html
File metadata and controls
42 lines (41 loc) · 1.45 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mass - Build a Solar System</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div id="title">Mass - Build a Solar System</div>
<!-- Music Controls -->
<div id="musicControls">
<audio id="backgroundMusic" loop>
<source src="background.mp3" type="audio/mpeg">
</audio>
<button onclick="toggleMusic()">Toggle Music</button>
</div>
<!-- Progress Bar -->
<div class="progress-bar">
<div class="progress-fill" id="progressFill"></div>
</div>
<div id="game">
<p>Mass: <span id="mass">0</span></p>
<button onclick="generateMass()">Generate Mass</button>
<button onclick="buyPlanet()">Buy Planet (<span id="planetCost">10</span> mass)</button>
<p>Planets: <span id="planetCount">0</span></p>
<ul id="planetList"></ul>
<div id="upgrades">
<h2>Upgrades</h2>
<button onclick="buyUpgrade()" id="upgradeBtn">Buy Mass Generator Upgrade (50 mass)</button>
</div>
<div id="achievements">
<h2>Achievements</h2>
<ul id="achievementList"></ul>
</div>
<audio id="clickSound" src="click.mp3"></audio>
<audio id="achievementSound" src="achievement.mp3"></audio>
</div>
<script src="script.js"></script>
</body>
</html>