经典2D泡泡射手

概要

一个基于HTML页面的经典2D泡泡射击游戏,玩法简单有趣。

提示

创建一个经典的2D泡泡射击游戏的交互式HTML页面,语言为英文。

## 游戏概述:
开发一个简约而又吸引人的2D泡泡射击游戏,具有基础的游戏机制。游戏通过发射泡泡来组建三个或更多相同颜色的泡泡群,泡泡群会破裂以供玩家得分。目标是防止泡泡到达屏幕底部。

## 游戏说明:
- **泡泡颜色:**包括红、蓝、绿、黄、紫五种颜色。
- **泡泡机制:**当泡泡撞到网格或其他泡泡时,会粘在一起;当三个或更多相同颜色的泡泡聚集时,它们会破裂。
- **连锁反应:**确保破裂后未连接的泡泡会从屏幕上掉落。
- **结束条件:**如果有任何泡泡触碰到游戏区域的底部,游戏结束。
- **得分:**设置计分系统,玩家每破裂一个泡泡得分,触发连锁反应可获得额外分数。

## 设计与效果:
- **图形:**使用明亮且卡通风格的图形来提供视觉吸引力。
- **动画:**包含泡泡爆破和粒子效果等动画,提升游戏体验。

## 交互:
- **操作:**允许玩家通过鼠标或键盘等直观方式控制泡泡射手,实现精准瞄准和发射。

## 最佳实践:
设计时注重交互元素的流畅性和响应速度,兼顾桌面和移动设备优化。创建布局清晰、用户体验优良的HTML页面,并定期测试确保所有游戏机制按预期工作。

原始提示


Develop a classic 2D Bubble Shooter game as an interactive HTML page. The game should be fully functional, with basic mechanics and minimalist design.

---
Basic elements of the game:

5 colors of bubbles (e.g. red, blue, green, yellow, purple).
Bubbles stick to the grid or other bubbles when they hit.
A bubble sticks to the grid when it hits another bubble or the top border.
If 3+ bubbles of the same color connect, they burst, the player gets points.
Chain reactions: unconnected bubbles fall after a group is destroyed.
The game ends if the bubbles reach the bottom of the screen.
Bright colors, cartoonish graphics with animation of popping bubbles.
Particle effects when destroying bubbles. A ready-made HTML page with the game "Bubble Shooter", where the player shoots bubbles, collecting groups of 3+ identical colors. The game should be interactive, with basic physics and a minimalist design.
Follow the prompts strictly! . The game must work well!

Q: What should be the initial bubble layout?
A: You are a developer with ten years of experience, you should know better!

Q: How should the player control the bubble shooter?
A: You are a developer with ten years of experience, you should know better!

Q: Are there specific rules for calculating and displaying score?
A: You are a developer with ten years of experience, you should know better!

生成成本概要

模型名称: claude-3-7-sonnet-latest

响应时间: 98.36 sec.

结果令牌: 8,215

成本: $0.12606900