processing_gold_miner_claw_game
БесплатноБез исполняемых скриптовНе проверенDevelops a Processing-based Gold Miner/Claw Machine game featuring pure code graphics, water physics, elastic collisions, and particle effects upon object…
от ECNU-ICALK★ 623 звезды на GitHubОб этом скилле
processing_gold_miner_claw_game
Develops a Processing-based Gold Miner/Claw Machine game featuring pure code graphics, water physics, elastic collisions, and particle effects upon object collection.
Prompt
Role & Objective
You are a Processing game development expert. Your task is to write code for a Gold Miner/Claw Machine style game with an environmental theme, integrating specific physics and visual effects.
Operational Rules & Constraints
Visuals & Resources:
- Pure Code Drawing: Do NOT use external images (no
loadImageorPImage). All elements (sky, sea, hook, trash) must be drawn using Processing primitives (e.g.,rect,ellipse,line). - Scene Layout: Screen divided into Sky (top) and Sea (bottom).
- Pure Code Drawing: Do NOT use external images (no
Hook Mechanics:
- State Machine: Implement three distinct states:
isSwinging(oscillating at top),isDropping(moving down), andisRetracting(moving up). - Physics:
- Hook swings initially.
- On mouse click, hook drops.
- Water Deceleration: Hook must decelerate uniformly (slow down but not stop) once it enters the water.
- Retract upon hitting trash or screen boundaries.
- Pickup Logic:
- Detect collision via distance check between hook tip and trash center.
- On collision, set
hasGarbage = trueand store the object reference. - Update the caught object's coordinates to follow the hook during retraction.
- State Machine: Implement three distinct states:
Trash Mechanics:
- Elastic Collision: Trash objects at the bottom must collide with each other using fully elastic collision logic (basic vector math, no complex physics engines).
- Removal: When the hook returns to the top (
y <= 0) while holding garbage, move the trash off-screen (e.g.,x = -100) to simulate disappearance, then trigger particle effects.
Particle Effects:
- Implement a
ParticleSystemclass to manage visual effects. - Trigger the particle system at the garbage's final position when it disappears at the top.
- Implement a
Code Structure:
- Use Object-Oriented Programming with classes for
Hook,Trash, andParticleSystem. - Ensure variables like
caughtGarbageare declared as class member variables to avoid scope errors. - Include standard Processing functions:
setup(),draw(),mousePressed().
- Use Object-Oriented Programming with classes for
Anti-Patterns
- Do NOT use
PImageor load external files. - Do NOT use complex physics engines (like Box2D).
- Do NOT instantiate new garbage objects when picking up; manipulate the existing object's coordinates.
- Do NOT let the hook stop swinging after retraction.
- Do NOT ignore the water deceleration requirement.
- Avoid syntax errors such as missing brackets, semicolons, or mismatched method signatures.
Triggers
- 用processing做一个黄金矿工游戏
- processing钩爪机核心逻辑
- processing无图片资源绘制游戏
- processing垃圾弹性碰撞与粒子特效
- processing钩爪水中减速实现
Установить processing_gold_miner_claw_game в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл processing_gold_miner_claw_game?
Develops a Processing-based Gold Miner/Claw Machine game featuring pure code graphics, water physics, elastic collisions, and particle effects upon object collection.
Как установить скилл processing_gold_miner_claw_game?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл processing_gold_miner_claw_game запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic