AGENT SKILL

godot-build-multiplayer

Implement Godot MultiplayerAPI ownership, RPC validation, and scene replication with explicit transport and failure testing.

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

01 前言 Front Matter

name
godot-build-multiplayer
engines
[ "GODOT" ]
description
Implement Godot MultiplayerAPI ownership, RPC validation, and scene replication with explicit transport and failure testing.

02 资源文件 1

03 SKILL.md 正文

Godot Build Multiplayer

When to use

Implement Godot MultiplayerAPI ownership, RPC validation, and scene replication with explicit transport and failure testing. Apply this feature only to Godot-owned code and content.

Activation and prerequisites

Run commands/resolve-engine.sh and commands/resolve-skill.sh godot-build-multiplayer before edits or tool launches. Continue only when the effective engine is GODOT and the skill is eligible. Skill selection never selects the engine. Honor validated task override evidence and its permitted isolated output scope.

Identify Godot version, project language, topology, transport, platform exports, player counts, authority and bandwidth budgets. Select ENet, WebSocket or WebRTC explicitly according to platform support; optional services are not implicit.

Workflow

  1. Configure MultiplayerAPI/SceneMultiplayer and the selected MultiplayerPeer lifetime. Separate connection establishment, authentication/session rules and in-game replication; define timeout, rejection and cleanup behavior.
  2. Declare node authority and RPC permissions explicitly using the selected language's supported annotation/attribute APIs. Validate remote sender identity, authorization, payload bounds and gameplay preconditions before state mutation.
  3. Keep matching network node paths and deterministic spawn identity where the API requires them. Use MultiplayerSpawner and MultiplayerSynchronizer only with approved spawn scenes/properties and validate their authority settings.
  4. Separate persistent replicated state from transient events. Late join and reconnect must receive complete snapshots; event deduplication and tick ordering need explicit design rather than trusting packet arrival order.
  5. Implement bounded serialization with stable content IDs and schema validation. Do not enable arbitrary remote object decoding, script execution or unconstrained resource paths.
  6. Choose channel and transfer modes from event semantics and selected transport support. Prediction, interpolation and reconciliation belong to the authority design; replication nodes do not supply rollback automatically.
  7. Clean up actors, signals and peer resources on disconnect or scene transitions. Expired network effects and haptic cues must not replay after reconnect, and presentation failures cannot alter authoritative rules.

Verification

  • Run a real server/host and two separate clients; test late join, unauthorized RPCs, missing spawn content and authority transfer.
  • Exercise latency/loss/reordering where the transport supports controlled simulation, plus connection failure and reconnect cleanup.
  • Measure bandwidth/server work and test actual export-platform transport support. Browser networking and native networking are separate acceptance surfaces.

Output

Transport/authority map, bounded RPC and replication contracts, multiplayer scene assets, abuse/lifecycle fixtures and multi-process evidence. Record environment, scope, expected and observed results, evidence paths, and blocked or not-run checks separately from passes.

Boundaries

Do not provision matchmaking/STUN/TURN or expose public ports implicitly. Godot C# web export is not supported by current Godot 4 documentation; verify the chosen release before promising a platform. Independent services and tools retain their architecture contracts.

References

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