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
- 参考文档agents/openai.yaml241 B
- 参考文档data/business-goals-template.md3.8 KB
- 参考文档data/key-insights-structure.md5.5 KB
- 参考文档data/mermaid-formatting-guide.md7.9 KB
- 参考文档data/quality-checklist.md6.0 KB
- 参考文档references/bounded-world-work.md15.1 KB
- 参考文档references/camera-and-runtime-audio.md3.4 KB
- 参考文档references/damage-windows-and-contact.md11.8 KB
- 参考文档references/gameplay-feedback-and-haptics.md8.9 KB
- 参考文档references/input-and-locomotion-feel.md12.8 KB
- 参考文档references/inventory-transactions.md3.2 KB
- 参考文档references/motion-package-integration.md2.6 KB
- 参考文档references/rendering-diagnostics.md14.7 KB
- 参考文档steps-c/step-00a-documentation-synthesis.md5.7 KB
- 参考文档steps-c/step-00b-business-goals-extract.md5.7 KB
- 参考文档steps-c/step-00c-target-groups-extract.md6.0 KB
- 参考文档steps-c/step-00d-driving-forces-extract.md6.0 KB
- 参考文档steps-c/step-00e-prioritization-extract.md5.9 KB
- 参考文档steps-c/step-00f-gap-analysis.md5.9 KB
- 参考文档steps-c/step-01-overview.md7.2 KB
- 参考文档steps-c/step-02-business-goals.md5.6 KB
- 参考文档steps-c/step-03-target-groups.md5.9 KB
- 参考文档steps-c/step-04-driving-forces.md6.1 KB
- 参考文档steps-c/step-05-prioritization.md6.1 KB
- 参考文档steps-c/step-06a-extract-features.md4.8 KB
- 参考文档steps-c/step-06b-confirm-assessment.md4.3 KB
- 参考文档steps-c/step-06c-make-assessment.md5.4 KB
- 参考文档steps-c/step-06d-generate-document.md5.2 KB
- 参考文档steps-c/step-06e-feature-wrap-up.md4.7 KB
- 参考文档steps-c/step-07a-generate-hub.md6.7 KB
- 参考文档steps-c/step-07b-generate-business-goals.md4.8 KB
- 参考文档steps-c/step-07c-generate-primary-persona.md5.0 KB
- 参考文档steps-c/step-07d-generate-secondary-persona.md4.9 KB
- 参考文档steps-c/step-07e-generate-tertiary-persona.md4.8 KB
- 参考文档steps-c/step-07f-generate-key-insights.md5.1 KB
- 参考文档steps-c/step-07g-quality-check.md5.6 KB
- 参考文档steps-c/step-08a-mermaid-init-structure.md4.4 KB
- 参考文档steps-c/step-08b-mermaid-business-goals.md4.6 KB
- 参考文档steps-c/step-08c-mermaid-platform.md4.5 KB
- 参考文档steps-c/step-08d-mermaid-target-groups.md4.8 KB
- 参考文档steps-c/step-08e-mermaid-driving-forces.md5.4 KB
- 参考文档steps-c/step-08f-mermaid-connections.md3.9 KB
- 参考文档steps-c/step-08g-mermaid-styling.md5.0 KB
- 参考文档steps-c/step-08h-mermaid-quality.md5.4 KB
- 参考文档steps-c/step-09a-finalize-hub.md4.7 KB
- 参考文档steps-c/step-09b-add-cross-references.md3.5 KB
- 参考文档steps-c/step-09c-quality-check.md3.6 KB
- 参考文档steps-c/step-09d-create-handover-package.md4.3 KB
- 参考文档steps-c/step-09e-update-design-log.md5.0 KB
- 参考文档steps-c/step-09f-provide-activation.md4.6 KB
- 参考文档steps-v/step-01-target-group-coverage.md4.4 KB
- 参考文档steps-v/step-02-prioritization-integrity.md4.3 KB
- 参考文档steps-v/step-03-persona-consistency.md4.7 KB
- 参考文档steps-v/step-04-feature-impact-alignment.md4.6 KB
- 参考文档steps-v/step-05-cross-document-coherence.md5.5 KB
- 参考文档templates/feature-impact.template.md1019 B
- 参考文档templates/persona-document.template.md9.7 KB
- 参考文档templates/trigger-map.template.md4.0 KB
- 参考文档workflow-validate.md1.2 KB
- 参考文档workflow.md2.8 KB
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
- Read the active game architecture and effective engine selection. Resolve compatible engine feature skills with
resolve-skill.shbefore implementing APIs; selecting this agnostic wrapper never selects an engine. Locate the authoritative loop, state, content, input, rendering, and persistence boundaries. - Define serializable content contracts separately from mutable runtime state.
- Use explicit state machines or deterministic transitions for actors, abilities, inventory transfers, and progression.
- Treat inventory and persistence changes as validated transactions with migration and no-loss tests.
- Keep presentation adapters replaceable and provide honest fallbacks for unavailable assets.
- Dispose render resources, events, audio nodes, timers, workers, and observers on teardown.
- 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
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.
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.
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.
integrate-game-wallets
Integrate explicit player-wallet connection, scoped SIWE authentication, authority invalidation and reviewed target-specific handoff without application-held player keys.
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.
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.