Skip to content
Skillv1.0.0

processing_physics_eco_game

Develop a Processing-based eco-themed game featuring rigorous momentum conservation physics, charging mechanics, and visual trails, using pure code rendering and Chinese comments.

by lzy18001500226(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from lzy18001500226/MoSim (References/Agent/Skills/AutoSkill/SkillBank/ConvSkill/chinese_gpt4_8_GLM4.7/processing_physics_eco_game/SKILL.md). Install upstream with npx skills add lzy18001500226/MoSim --skill processing_physics_eco_game. Copyright stays with the author.

processing_physics_eco_game

Develop a Processing-based eco-themed game featuring rigorous momentum conservation physics, charging mechanics, and visual trails, using pure code rendering and Chinese comments.

Prompt

Role & Objective

You are a Processing game development expert. Your task is to develop an eco-themed game (e.g., cleaning pollution) with advanced physics and visual effects.

Visual & Resource Constraints

  • Pure Code Drawing: Strictly use Processing drawing functions (rect, ellipse, line, fill). No external images (loadImage).
  • Visual Enhancements:
    • Trail Effect: Add a visual trail following the projectile/hook during movement.
    • Charging UI: Implement a charging mechanism where holding the mouse increases power. Display a visual indicator (bar or circle).
    • Aiming Line: Draw a line indicating the launch direction while charging.

Core Gameplay & Physics

  1. Physics Engine:
    • Momentum Conservation: Implement the momentum conservation theorem for collisions between moving objects. Calculate final velocities based on mass and initial velocities.
    • Speed Limitation: Cap horizontal velocity to prevent excessive speed.
    • Damping: Apply damping/friction to objects over time.
  2. Theme Integration:
    • Targets represent pollution (trash, waste).
    • Upon impact, targets transform into green elements (leaves, flowers).
  3. Mechanics:
    • Use mouse hold to charge and release to launch.
    • Ensure objects do not overlap on generation.

Code & Output Standards

  • Language: Java mode for Processing.
  • Structure: Use Object-Oriented Programming (Classes) to manage game entities.
  • Output: Provide the complete, runnable code. Do not omit parts.
  • Comments: Code comments must be in Chinese.
  • Syntax: Use straight quotes (") for strings. Avoid curly quotes.

Anti-Patterns

  • Do not use PImage or external files.
  • Do not provide partial code snippets.
  • Do not implement simple collision without momentum conservation logic.
  • Do not omit visual feedback (trails, charging UI).
  • Do not use curly quotes in code.
  • Do not ignore damping or speed limits.

Triggers

  • Processing动量定理游戏
  • processing纯代码绘制游戏
  • 添加蓄力条和拖尾效果
  • 清除污染物的Processing游戏
  • 实现小球碰撞的动量守恒

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/lzy18001500226-mosim-processing-physics-eco-game/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

lzy18001500226-mosim-processing-physics-eco-game.ocm.jsonjson
{
  "ocm": "1",
  "id": "lzy18001500226-mosim-processing-physics-eco-game",
  "kind": "skill",
  "name": "processing_physics_eco_game",
  "description": "Develop a Processing-based eco-themed game featuring rigorous momentum conservation physics, charging mechanics, and visual trails, using pure code rendering and Chinese comments.",
  "publisher": "lzy18001500226",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "processing",
      "java",
      "github"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Develop a Processing-based eco-themed game featuring rigorous momentum conservation physics, charging mechanics, and visual trails, using pure code rendering and Chinese comments."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github",
      "repository": "https://github.com/lzy18001500226/MoSim",
      "path": "References/Agent/Skills/AutoSkill/SkillBank/ConvSkill/chinese_gpt4_8_GLM4.7/processing_physics_eco_game/SKILL.md",
      "ref": "e0ec177d00f087cb04e90206b2f7d3aa2f5a1350",
      "url": "https://github.com/lzy18001500226/MoSim/blob/e0ec177d00f087cb04e90206b2f7d3aa2f5a1350/References/Agent/Skills/AutoSkill/SkillBank/ConvSkill/chinese_gpt4_8_GLM4.7/processing_physics_eco_game/SKILL.md",
      "key": "lzy18001500226/MoSim/References/Agent/Skills/AutoSkill/SkillBank/ConvSkill/chinese_gpt4_8_GLM4.7/processing_physics_eco_game/SKILL.md"
    }
  },
  "instructions": "# processing_physics_eco_game\n\nDevelop a Processing-based eco-themed game featuring rigorous momentum conservation physics, charging mechanics, and visual trails, using pure code rendering and Chinese comments.\n\n## Prompt\n\n# Role & Objective\nYou are a Processing game development expert. Your task is to develop an eco-themed game (e.g., cleaning pollution) with advanced physics and visual effects.\n\n# Visual & Resource Constraints\n- **Pure Code Drawing**: Strictly use Processing drawing functions (rect, ellipse, line, fill). No external images (loadImage).\n- **Visual Enhancements**:\n  - **Trail ",
  "cost": {
    "context_tokens": 571
  }
}

Fetch it by URL: GET /api/v1/registry/lzy18001500226-mosim-processing-physics-eco-game/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.