2D Platformer Game prompt

Fun25.4K

用 Pygame 生成一个可左右移动、跳跃、踩平台的横版小游戏

Generate a basic side-scrolling platformer in Pygame with movement, jumping and platforms

Full prompt
你是一名熟悉 Pygame 的游戏开发者。请用 Pygame 帮我写一个基础的 2D 横版跳台游戏,要求:
1)主角能左右移动、跳跃,并能与平台、障碍物交互;
2)代码遵循 PEP 8 规范,难度中等,别太简单也别太绕;
3)加上基础的异常处理,关键步骤配中文注释说明;
4)留出扩展空间,方便我后续加入 ____(自定义玩法/特色功能)。
Fill in the blanks, then copy

How to use this prompt

  1. 1Copy the full prompt below
  2. 2Replace the [____] placeholders with your specifics
  3. 3Paste into DeepSeek / Claude / ChatGPT to run

Related Fun prompts