Files
rshtirmer aede0989d2 feat(gem-catcher): scaffold gem-catcher game from phaser-2d template
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>
2026-02-23 15:41:49 -05:00

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>