Build a polished, playable browser game:…
- User
Build a polished, playable browser game: 类似英雄联盟的MOBA游戏,qwer四个技能,三个不同功能的英雄,可以选择,可以随时退出,重新选英雄. Make the core loop fun within the first ten seconds, with tight controls for both keyboard and touch, and juicy feedback — screen shake, particle effects, and satisfying animations. Include a start screen, a score system, pause and game-over states with instant restart, and a local high-score table. Style it with a cohesive visual theme and make sure it runs smoothly at 60fps on desktop and mobile.
- Assistant
实现完成
- 三名可选英雄:刺客影刃、法师星澜、战士赤垒,各自拥有独立 QWER 技能组。
- 完整敌潮、生存计分、连击、波次、回血掉落与动态难度系统。
- 支持右键、方向键或 IJKL 移动,鼠标瞄准与普攻;移动端提供摇杆和触控技能键。
- 包含开始选人、暂停、游戏结束、即时重启和随时重选英雄。
- 加入屏幕震动、命中停顿、粒子、冲击波、伤害数字、技能冷却动画和 Web Audio 音效。
- 本地保存前六名成绩,并在选人和结算界面显示排行榜。
- Canvas 游戏循环采用帧间隔限制、粒子数量上限和移动端 DPR 限制,面向 60fps 运行。
主要实现位于
src/App.tsx,响应式视觉系统位于src/index.css。生产构建已通过:
vite build,无 TypeScript 错误。真实移动设备上的触控手感和持续帧率尚未进行实机测试。
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.