打造 3:接水果游戏
难度:●●● 挑战 · 搭建时间:约 3 分钟
挑战项目:真正的游戏循环。用左右方向键移动篮子接住掉落的水果得分——但要躲开炸弹。
提示词(请复制英文原文)
复制以下内容到 claude.ai:
Make a simple web game. Good fruit and bombs fall from the top. I move a basket with the Left and Right arrow keys to catch the fruit for points but dodge the bombs. Catching a bomb costs a life, and the game speeds up over time. Show the score and lives. Make it work with a normal keyboard.
只用方向键——非常适合之后做成「香蕉摇杆」。到这里你应该相信,几乎什么都可以问 Claude 来做。
步骤
粘贴提示词
把上面的英文提示词输入 claude.ai,按 Enter。
快速玩一轮
接住水果、躲开炸弹,看分数和生命值变化。
注意加速
游戏会越来越快——这是有完整规则的游戏循环,不只是单次反应。
备用演示
打开成品游戏
可用键盘玩的接水果躲炸弹演示。
下一步:Makey Makey 实操 →