-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
57 lines (52 loc) · 2.01 KB
/
Copy pathindex.html
File metadata and controls
57 lines (52 loc) · 2.01 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Floating Island</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- Home Interface -->
<div id="home-interface" class="center-screen">
<div id="home-content">
<h1>Welcome to the Floating Island</h1>
<button id="start-game-button">Start Game</button>
</div>
</div>
<!-- High Score Screen -->
<div id="highscore-screen" class="center-screen" style="display: none;">
<h1>High Scores</h1>
<ol id="highscore-list">
<!-- High scores will be dynamically populated -->
</ol>
<button id="return-home-button-highscore">Return to Home</button>
</div>
<!-- Game Over Screen -->
<div id="game-over-screen" class="center-screen" style="display: none;">
<h1>Game Over</h1>
<p>Island Marbles: <span id="final-score">0</span></p>
<p id="highscore-message" style="display: none;">🎉 New High Score! 🎉</p>
<button id="return-home-button">Return to Home</button>
</div>
<!-- Game Container -->
<div id="game-container" style="display: none;">
<header>
<h1>Floating Island</h1>
<div id="score-board">
<p>Island Marbles: <span id="score">0</span></p>
<p>Lives: <span id="lives">3</span></p>
</div>
<div id="control-buttons">
<button id="pause-button">Pause</button>
<button id="play-button" style="display: none;">Play</button>
<button id="restart-game-button" style="display: none;">Restart</button>
</div>
</header>
<div id="game-area">
<img id="chameleon" src="mDGuw-G9_400x400-removebg-preview.png" alt="Fitboy">
</div>
</div>
<script src="script.js"></script>
</body>
</html>