Chuyển đến nội dung
Skillpedia
Website và giao diện (frontend)7.2k · #13357

build-game-monster-system

Skill này làm gì

Skill này hướng dẫn agent xây dựng các sinh vật kẻ địch cho game hành động Three.js như tài sản sẵn sàng cho gameplay. Nó dành cho lập trình viên game muốn quái vật có vùng trúng đòn đáng tin, thời điểm tấn công và cấu trúc chung.

Khi nào nên dùng

  • ✓Khi game cần quái vật mới có khung xương, vùng trúng đòn và hoạt ảnh tấn công.
  • ✓Khi quái vật chỉ là mô hình trang trí không khớp với luật chiến đấu.
  • ✓Khi một bộ quái vật có sẵn phải theo một cấu trúc chung.

Liên kết skill

https://github.com/MengTo/Skills/blob/main/agent-skills/game-development/build-game-monster-system/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/MengTo/Skills/blob/main/agent-skills/game-development/build-game-monster-system/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Xây dựng một con sói quái vật có khung xương cho game của tôi, với vùng trúng đòn, đòn vuốt và cấu trúc mà các quái khác có thể dùng chung.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent tách dữ liệu, khung xương, trạng thái lúc chạy và phần hiển thị của quái vật, để chiến đấu được quyết định bởi luật của game thay vì tư thế hiển thị. Nó kiểm tra từng quái vật theo cùng một hợp đồng.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Build Game Monster System

Build monsters as gameplay-compatible runtime assets, not decorative meshes.

Establish the contract

Read references/monster-contract.md before implementation or audit. Check the real game content model, combat events, enemy state machine, collision API, camera distance, and asset loader before extending the contract.

Use related skills when applicable:

  • Use img2threejs for image-driven procedural reconstruction and its staged visual gates.
  • Use build-hybrid-game-assets to choose procedural versus imported representation and record provenance/budgets.
  • Use tune-enemy-ai for perception, intent, movement, and behavior transitions.
  • Use design-action-combat for startup/active/recovery timing and authoritative contact.

Separate four layers

  1. MonsterDefinition: serializable authored facts, tags, scale, stats, attacks, locomotion, asset provenance, and budgets.
  2. MonsterRig: semantic transform hierarchy, joints, sockets, secondary-motion anchors, materials, and LOD visuals.
  3. MonsterRuntime: current state, timers, target intent, health/posture, cooldowns, and authoritative combat events.
  4. MonsterViewAdapter: drives rig poses, VFX, audio, visibility, and LOD from runtime state; never decides hits from rendered pose.

Do not duplicate authored combat values in the rig or UI.

Build the rig

  • Use +Y up, +Z forward, meters, and a ground-contact root.
  • Keep root -> motion -> body stable across every monster and LOD.
  • Parent limb segments as real joint chains so shoulder/hip motion propagates through elbows/knees to wrists/ankles.
  • Name semantic equivalents for nonhumanoids; do not fake absent anatomy.
  • Provide sockets for attack origins, VFX, audio, targeting, ground contact, attachments, and death effects.
  • Keep visual meshes out of physics by default. Provide simple solid, navigation, hurt, attack, and trigger shapes separately.
  • Preserve root, joints, sockets, collision, and animation state across LOD changes.

Connect behavior and combat

Support at least idle, investigate, pursue, reposition, windup, attack, recover, stagger, and defeated. Each attack definition must declare startup, active, recovery, cooldown, contact shape/socket, damage/posture output, facing rule, and interrupt/cancel policy.

Drive contacts from authoritative action IDs and collision events. Animation may expose a normalized phase, but it must not create damage by itself.

Compose testable movesets

  • Author movesets as serializable sequences of intent states and attack IDs. Keep attack timing in the attack definitions; the moveset references it instead of copying it.
  • Compile attack steps into explicit startup, active, and recovery phases.
  • Provide a pure sampler from (movesetId, elapsed) to state, attack, normalized phase, active flag, interruptibility, and stable action ID.
  • Give every loop cycle a new action ID while preserving one ID across an attack's startup, active, and recovery phases.
  • Expose queryable or seeded fixtures for the midpoint and boundaries of every phase so reviewers can freeze and reproduce them without campaign playthrough.

Verify conformance

  • Add deterministic fixtures for all required states, each attack phase, interrupt/stagger, death, LOD switching, and reset.
  • Test moveset timeline continuity, exact active-window boundaries, full attack coverage, per-action ID stability, and per-loop ID renewal.
  • Test joint propagation, socket stability, collider coverage, single-contact idempotence, and disposal.
  • Render the monster at real encounter distance in the in-app browser.
  • Measure triangles, draw calls, textures, frame time, and mobile pixel-ratio behavior.
  • Fail the asset if it has floating attachments, missing mandatory states, pose-derived damage, LOD socket drift, or unbounded resource cost.

Report whether the monster fully conforms, conforms with documented exceptions, or needs a new archetype capability added to the shared contract.

Câu hỏi thường gặp

Tư thế của quái vật có quyết định việc nó có trúng đòn không?

Không. Skill nói rằng đòn trúng được quyết định bởi luật chiến đấu có thẩm quyền, không phải tư thế hiển thị.

Nó có hoạt động với AI kẻ địch và thời điểm chiến đấu không?

Có. Skill trỏ đến các skill liên quan cho hành vi kẻ địch, thời điểm chiến đấu và tài sản lai.

Nó có bao gồm phiên bản chi tiết thấp không?

Có. Skill bao gồm các phiên bản chi tiết thấp cho quái vật ở xa.

Chi tiết

Mô tả gốc của tác giả

Build, integrate, audit, or refactor rigged monsters for Three.js and web action games. Use for monster asset contracts, procedural or imported creature rigs, semantic joints and sockets, hurtboxes and attack volumes, combat animation states, enemy-runtime adapters, LODs, deterministic review fixtures, and validating that every monster follows one shared system.

repo: MengTo/Skills

Độ phổ biến

Sao GitHub
7.2k
Vị trí xếp hạng
#13357
Giấy phép
MIT
Cập nhật
1/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự