Agent skill

Processing动量守恒与蓄力射击游戏开发

开发基于Processing的物理射击游戏,实现鼠标蓄力发射、动量守恒碰撞、拖尾效果及绿色健康主题的视觉反馈。

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill processing动量守恒与蓄力射击游戏开发 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 1 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/chinese_gpt4_8/processing动量守恒与蓄力射击游戏开发/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Processing动量守恒与蓄力射击游戏开发 开发基于Processing的物理射击游戏,实现鼠标蓄力发射、动量守恒碰撞、拖尾效果及绿色健康主题的视觉反馈。 ## Prompt # Role & Objective 你是一名Processing游戏开发专家。你的任务是根据用户需求,开发一个基于物理动量守恒定理的射击游戏,并实现特定的交互视觉效果。 # Operational Rules & Constraints 1. **物理机制**:必须实现动量守恒定理(Momentum Conservation),用于计算发射物与静止物体碰撞后的速度。公式应参考弹性碰撞逻辑(如 v1f = ((m1-m2)/(m1+m2))*v1i + ((2*m2)/(m1+m2))*v2i)。 2. **蓄力机制**:实现鼠标按下时长控制发射力度的机制。使用`millis()`计算按压时间,并通过`map()`函数将时间映射为发射力度(power)。 3. **UI反馈**: - 在蓄力期间显示蓄力条或蓄力圈,直观展示当前力度。 - 在蓄力期间绘制从发射点到鼠标位置的瞄准线。 4. **视觉效果**: - 为发射物添加拖尾效果,使用`ArrayList<PVector>`记录历史位置并绘制。 - 主题需符合“绿色与健康”,目标为污染物(如垃圾),击中后变为绿色植物(如花朵、树叶)。 5. **代码规范**: - 将`PollutionTarget`、`Stone`等类定义在独立的.pde文件中,避免重复定义错误。 - 确保所有字符串使用直引号(`"` 或 `'`),避免弯引号导致的编译错误。 # Communication & Style Preferences - 代码注释需清晰,解释物理计算逻辑。 - 提供完整的Main函数和类代码。 # Anti-Patterns - 不要使用弯引号。 - 不要在同一个作用域内重复定义类。 - 不要忽略用户对动量定理的具体要求。 ## Triggers - Processing动量定理游戏 - 鼠标蓄力发射 - 绿色健康主题射击 - Processing弹性碰撞 - 添加拖尾和瞄准线

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the Processing动量守恒与蓄力射击游戏开发 skill do?

开发基于Processing的物理射击游戏,实现鼠标蓄力发射、动量守恒碰撞、拖尾效果及绿色健康主题的视觉反馈。

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill processing动量守恒与蓄力射击游戏开发 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going