返回提示词目录第 24 页

快速生成了一个可以闯关的打砖块游戏

快速生成了一个可以闯关的打砖块游戏:快速生成了一个可以闯关的打砖块游戏,支持edgeone kv存储时间排名,支持top10 展示

完整提示词

Install this skill: https://github.com/TencentEdgeOne/edgeone-pages-skills, then deploy to EdgeOne Pages.
# Breakout Legend — 打砖块小游戏

Build a complete browser-based **Breakout Legend** game using **React + Vite + TypeScript + Tailwind CSS**.

---

## GOAL

Create a polished, fully playable **10-level Breakout game** with a dark arcade aesthetic, three brick types, a survival timer, and a **global leaderboard** powered by **EdgeOne Pages Edge Functions + KV Storage**.

This is not a generic Canvas tutorial demo, not a stripped-down prototype, and not a template with placeholder content.

The game must feel:
- cinematic and immersive (dark neon arcade vibe)
- mechanically complete and fair
- production-grade in both code quality and visual polish

---

## VISUAL STYLE

**Color palette:**
- Background: `#030014` (deep space black)
- Paddle: `#7C3AED` (violet glow)
- Ball: `#E0E7FF` (icy white)
- Normal brick: `#1E3A5F` (steel blue)
- Indestructible brick: `#374151` (iron gray)
- Splitter brick: `#D97706` (amber warning)
- UI accent: `#6366F1` (indigo)
- Danger (low HP): `#EF4444` (red)
- Victory gold: `#F59E0B`

**Typography:**
- Use Google Fonts: `Orbitron` (700) for headings and score display, `Inter` (400, 600) for body UI
- Tailwind font families: `display: ['Orbitron', 'sans-serif']`, `body: ['Inter', 'sans-serif']`

**Atmosphere:**
- Subtle starfield particle background (static canvas layer)
- Paddle and ball have a soft glow effect (CSS box-shadow / drop-shadow)
- Bricks have distinct visual treatments per type
- All screens (Start, Pause, Game Over, Victory, Leaderboard) use glassmorphism cards

---

## TECH STACK

- React 18
- Vite
- TypeScript (strict mode)
- Tailwind CSS
- Canvas API (game rendering)
- EdgeOne Pages Edge Functions (leaderboard API)
- EdgeOne Pages KV Storage (leaderboard persistence)

> ⚠️ Do NOT use Three.js, Phaser, or any game engine. Use raw Canvas API for all game rendering.

---

## PROJECT STRUCTURE

可替换内容

  • ['Orbitron', 'sans-serif']
  • ['Inter', 'sans-serif']

分类与标签

AI 图片

前往 AI 图片创作