AGENT SKILL

build-gameplay-runtime

Implement deterministic gameplay systems with clear simulation, content, presentation, input, persistence, and lifecycle boundaries. Use for cameras, controls, inventory, enemies, monsters, audio feedback, targeting, progression, and integrated game-loop work.

License 许可
MIT
最近更新
2026-11-13
Stars
★ 4
Forks
3

01 前言 Front Matter

name
build-gameplay-runtime
engines
[ "AGNOSTIC" ]
description
Implement deterministic gameplay systems with clear simulation, content, presentation, input, persistence, and lifecycle boundaries. Use for cameras, controls, inventory, enemies, monsters, audio feedback, targeting, progression, and integrated game-loop work.

02 资源文件 60

03 SKILL.md 正文

Build Gameplay Runtime

When to use

  • Building or refactoring reusable gameplay systems.
  • Adding content without duplicating runtime logic.
  • Fixing state, lifecycle, persistence, or presentation coupling.

Workflow

  1. Read the active game architecture and effective engine selection. Resolve compatible engine feature skills with resolve-skill.sh before implementing APIs; selecting this agnostic wrapper never selects an engine. Locate the authoritative loop, state, content, input, rendering, and persistence boundaries.
  2. Define serializable content contracts separately from mutable runtime state.
  3. Use explicit state machines or deterministic transitions for actors, abilities, inventory transfers, and progression.
  4. Treat inventory and persistence changes as validated transactions with migration and no-loss tests.
  5. Keep presentation adapters replaceable and provide honest fallbacks for unavailable assets.
  6. Dispose render resources, events, audio nodes, timers, workers, and observers on teardown.
  7. Define bounded gameplay-feedback events separately from simulation outcomes. Assign event identity, local-player audience, channel priorities, intensity, clock, interruption, cancellation, and overlap policies; review the feedback reference for haptic device ownership and teardown.

References

  • Read input-and-locomotion-feel.md when selected actions need late-jump grace, buffering, or deliberate acceleration/stopping; retain compatible engine control and movement ownership.
  • Read damage-windows-and-contact.md when damage interactions need authoritative windows, attack/target identities, duplicate-contact rules, immunity, or correction boundaries.
  • Read bounded-world-work.md when requested world behavior or measured workloads justify spatial indexing, cooperative work, navigation/steering, pooling/streaming, or versioned generated state; choose only relevant techniques and retain existing engine owners.
  • Read rendering-diagnostics.md when bounds/culling, runtime LOD, shading spaces, billboard/rotation intent, depth conflicts, or measured render cost need diagnosis; preserve authoritative offscreen outcomes and the selected renderer/asset owners.
  • Read inventory-transactions.md for conservation invariants, atomic transfers, serialization, migration, and no-loss testing.
  • Read camera-and-runtime-audio.md for camera ownership, modifiers, occlusion, browser audio activation, voice budgets, priority, and accessibility equivalents.
  • Read gameplay-feedback-and-haptics.md when coordinating animation, camera, sound, VFX, UI, hit-stop, or tactile device output.
  • Read motion-package-integration.md when connecting authored character/vehicle motion, root displacement or speed/warp presentation to authoritative movement.

Output

  • A runtime ownership and data-flow design.
  • Typed content and state contracts with failure behavior.
  • Targeted unit, integration, persistence, lifecycle, and playthrough tests.

Guardrails

  • Do not store authoritative game state only in render objects or component visibility.
  • Do not allocate unbounded work in the frame loop.
  • Do not couple one content item to bespoke runtime code when a shared contract is viable.
  • Feedback failure must not alter damage, movement authority, rewards, or other simulation outcomes. Physical knockback belongs to the gameplay rules when it changes an actor's state.

04 同仓库更多 Skills

TimothyMeadows
TimothyMeadows/Hephaera

verify-web3-game-lifecycle

Verify a game's selected Web3 asset, wallet, ownership and trading lifecycle with contract properties, canonical recovery, actual target evidence and separate release readiness.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

verify-onchain-game-assets

Verify exact on-chain game collection ownership and quantities at canonical blocks, reconcile inventory events, and design honest match admission. Use for ERC721/ERC1155 inventory, reorg recovery, reservations, or transfer-during-match rules.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

plan-web3-game-assets

Define an opt-in Ethereum, Base or Immutable game-asset lifecycle, including token identity, supply, rights, custody, game eligibility and chain-specific dependencies.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

integrate-game-wallets

Integrate explicit player-wallet connection, scoped SIWE authentication, authority invalidation and reviewed target-specific handoff without application-held player keys.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

integrate-game-asset-trading

Integrate explicitly selected game asset settlement with exact unsigned intents, scoped approvals, idempotent operations and canonical receipt reconciliation. Use for NFT listing, buying, cancellation, retries or marketplace integration.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

build-evm-game-contracts

Author and verify host-owned EVM game collections and explicit mint, burn, craft or admin rules with pinned Solidity tooling. Use for contract source and deployment candidates; deployment and player signing require separate authorization.

★ 4