Some checks failed
Build / build (push) Failing after 20s
Implemented a level selection system with 5 difficulty modes (Recruit, Pilot, Captain, Commander, Test), each with different asteroid counts, sizes, speeds, and constraints. Upgraded BabylonJS from 7.13.1 to 8.32.0 and fixed particle system animation compatibility issues. - Add card-based level selection UI with 5 difficulty options - Create difficulty configuration system in Level1 - Fix explosion particle animations for mesh emitters (emitter.y → emitter.position.y) - Implement particle system pooling for improved explosion performance - Upgrade @babylonjs packages to 8.32.0 - Fix audio engine unlock after Babylon upgrade - Add test mode with 100 large, slow-moving asteroids - Add styles.css for level selection cards with hover effects 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
56 lines
2.0 KiB
HTML
56 lines
2.0 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta content="width=device-width, initial-scale=1, height=device-height" name="viewport">
|
|
<link href="/styles.css" rel="stylesheet">
|
|
<title>Space Game</title>
|
|
<script>
|
|
navigator.serviceWorker.getRegistrations().then(registrations => {
|
|
for (const registration of registrations) {
|
|
registration.unregister();
|
|
}
|
|
});
|
|
</script>
|
|
<link rel="prefetch" href="/background.mp3"/>
|
|
<link rel="prefetch" href="/8192.webp"/>
|
|
</head>
|
|
<body>
|
|
<canvas id="gameCanvas"></canvas>
|
|
<div id="mainDiv">
|
|
<div id="loadingDiv">Loading...</div>
|
|
<div id="levelSelect">
|
|
<h1>Select Your Level</h1>
|
|
<div class="card-container">
|
|
<div class="level-card">
|
|
<h2>Recruit</h2>
|
|
<p>Perfect for beginners. Learn the basics of space combat.</p>
|
|
<button class="level-button" data-level="recruit">Start as Recruit</button>
|
|
</div>
|
|
<div class="level-card">
|
|
<h2>Pilot</h2>
|
|
<p>Intermediate challenge. Face tougher enemies and obstacles.</p>
|
|
<button class="level-button" data-level="pilot">Start as Pilot</button>
|
|
</div>
|
|
<div class="level-card">
|
|
<h2>Captain</h2>
|
|
<p>Advanced difficulty. Command your ship with precision.</p>
|
|
<button class="level-button" data-level="captain">Start as Captain</button>
|
|
</div>
|
|
<div class="level-card">
|
|
<h2>Commander</h2>
|
|
<p>Expert mode. Only for the most skilled space warriors.</p>
|
|
<button class="level-button" data-level="commander">Start as Commander</button>
|
|
</div>
|
|
<div class="level-card">
|
|
<h2>Test</h2>
|
|
<p>Testing mode. Many large, slow-moving asteroids.</p>
|
|
<button class="level-button" data-level="test">Start Test Mode</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script type="module" src="/src/main.ts"></script>
|
|
</body>
|
|
</html>
|