mirror of
https://github.com/PlayableIntelligence/game-creator.git
synced 2026-09-19 07:34:10 +08:00
aede0989d2
Implement the complete Gem Catcher game with all core mechanics: - Player basket moves horizontally at bottom of screen (arrow keys + touch) - Gems rain from the sky; catch them for +1 score - Skulls also fall (15% chance); catch one to lose a life - 3 lives with heart indicator, game over at 0 lives - Difficulty ramp: every 10 points increases fall speed and spawn rate - Night sky gradient background theme - GameState tracks lives, difficulty, isMuted - EventBus wired with GEM_CAUGHT, SKULL_CAUGHT, LIFE_LOST, DIFFICULTY_UP - render_game_to_text() includes lives, difficulty, gem/skull counts - GameOverScene preserves createButton() pattern, uses gameState.reset() - Touch input: left half = move left, right half = move right Co-Authored-By: Claude <noreply@anthropic.com>
19 lines
571 B
HTML
19 lines
571 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="icon" href="data:,">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
|
<title>Gem Catcher</title>
|
|
<style>
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; }
|
|
#game-container { width: 100%; height: 100%; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="game-container"></div>
|
|
<script type="module" src="/src/main.js"></script>
|
|
</body>
|
|
</html>
|