Skip to content
Back to skills

Processing Physics Eco Game

ASecurity

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

  • 17 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 30, 2026
developmentgojavarails

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add gabrielmoreira/agent-skills-mirror --skill processing_physics_eco_game --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Processing Physics Eco Game?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Processing Physics Eco Game
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gabrielmoreira-processing-physics-eco-game/badge)](https://www.skillsdirectory.com/skills/gabrielmoreira-processing-physics-eco-game)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "3fa669b0-91b8-416f-acb5-705bfe70fad1"
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."
version: "0.1.2"
tags:
  - "Processing"
  - "游戏开发"
  - "物理模拟"
  - "动量守恒"
  - "环保主题"
  - "Java"
triggers:
  - "Processing动量定理游戏"
  - "processing纯代码绘制游戏"
  - "添加蓄力条和拖尾效果"
  - "清除污染物的Processing游戏"
  - "实现小球碰撞的动量守恒"
---

# 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游戏
- 实现小球碰撞的动量守恒

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.