85 lines
2.5 KiB
HTML
85 lines
2.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Space Game</title>
|
|
<link rel="stylesheet" href="Style.css">
|
|
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap" rel="stylesheet">
|
|
</head>
|
|
|
|
<body>
|
|
<!-- MAIN MENU -->
|
|
<div id="mainMenu">
|
|
<div class="menu-content">
|
|
<h1 class="game-title">
|
|
<span class="title-word">SPACE</span>
|
|
<span class="title-word">ODYSSEY</span>
|
|
</h1>
|
|
|
|
<div class="menu-buttons">
|
|
<button class="menu-btn" id="startBtn">
|
|
<span class="btn-icon">▶</span>
|
|
<span class="btn-text">START GAME</span>
|
|
</button>
|
|
|
|
<button class="menu-btn" id="optionBtn">
|
|
<span class="btn-icon">⚙</span>
|
|
<span class="btn-text">OPTIONS</span>
|
|
</button>
|
|
|
|
<button class="menu-btn" id="exitBtn">
|
|
<span class="btn-icon">✕</span>
|
|
<span class="btn-text">EXIT</span>
|
|
</button>
|
|
</div>
|
|
|
|
<div class="footer-info">
|
|
<p>WASD - Move | Space - Fire | Q - Missile | Shift - Bomb | P - Pause</p>
|
|
</div>
|
|
<div class="footer-info">
|
|
<p>Stanley Timothy Gunawan - 5803025021 | Jeremy Christian - 5803025025 | Philippo Mariernest A.B - 5803025025</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- OPTIONS MENU -->
|
|
<div id="optionsMenu" style="display: none;">
|
|
<div class="menu-content">
|
|
<h2 class="options-title">OPTIONS</h2>
|
|
|
|
<div class="options-container">
|
|
<div class="option-item">
|
|
<label>Music</label>
|
|
<div class="button-group">
|
|
<button class="toggle-btn active" data-music="on">ENABLE</button>
|
|
<button class="toggle-btn" data-music="off">DISABLE</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="option-item">
|
|
<label>Sound Effects</label>
|
|
<div class="button-group">
|
|
<button class="toggle-btn active" data-sfx="on">ENABLE</button>
|
|
<button class="toggle-btn" data-sfx="off">DISABLE</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<button class="menu-btn back-btn" id="backBtn">
|
|
<span class="btn-icon">←</span>
|
|
<span class="btn-text">BACK</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- GAME CANVAS (Hidden initially) -->
|
|
<div id="gameContainer" style="display: none;">
|
|
<canvas id="canvas"></canvas>
|
|
</div>
|
|
|
|
<script src="Script.js"></script>
|
|
</body>
|
|
|
|
</html> |