Build a polished, playable browser game: 一句话规则:一个普通的 2D 平台跳跃小游戏,但每通过一关,你必须永久交出一个按键。…
- User
Build a polished, playable browser game: 一句话规则:一个普通的 2D 平台跳跃小游戏,但每通过一关,你必须永久交出一个按键。 展开说:开局你有完整操作——左、右、跳、冲刺。每关的出口是一扇门,门要"吃"掉你的一个键才肯开,吃哪个由你自己选。于是越往后玩你越"残":交出"跳"之后,只能靠冲刺撞斜坡弹上高台;交出"左"之后,整张地图对你来说变成单行道,想回头就得绕一整圈;到最后一关,你手里只剩一个键。 它的乐趣在于:难度不是靠敌人变强,而是你亲手把自己变弱,这种"自断一臂"的抉择感很上头;同一张图,因为交出的键不同,走法会完全不一样,天然有重玩价值;而且对设计关卡的人来说思路特别清晰——每一关就是一道"缺了某个键该怎么过"的谜题。 还可以加一点小风味:被献祭的按键实体化留在世界里,比如你交出的"跳"键,会变成后面某一关的一块垫脚砖。你失去的东西换了种方式托着你,顺手把叙事也带出来了。. 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
I'll build a polished 2D platformer game with the key-sacrifice mechanic. Let me start by examining the project structure, then create the game.
Now I'll create the game engine and React UI. Let me start with the comprehensive game engine.
Let me fix those unused variable warnings and create the App component.
Good. Now let me create the main App component with all the UI screens.
Let me fix the exports and the TouchList iteration issue.
The exports look correct. Let me check if there's a cached issue by reading the import line:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.