Community编程与开发github.com

rivet-dev/multiplayer-game

为构建多人游戏提供实用模式:匹配、Tick 循环、实时状态、兴趣管理和验证。

multiplayer-game 是什么?

此技能为开发多人游戏提供了一套经过验证的实用架构模式,涵盖了从匹配机制到实时同步的核心挑战。它包含了匹配、Tick 循环、实时状态管理、兴趣管理和验证等关键模块,帮助开发者快速搭建可靠、可扩展的游戏后端。该技能适用于 Rivet 平台,并可在 AI 代码代理(如 Claude Code)中使用。技能文档以 Markdown 格式提供,详细说明了每个模式的实现思路、代码示例和最佳实践,无需前端知识即可理解。通过遵循这些模式,开发者可以避免常见的分布式系统陷阱,并专注于游戏逻辑本身。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/rivet-dev/skills/tree/main/skills/multiplayer-game

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

multiplayer-game 是做什么的?

为构建多人游戏提供实用模式:匹配、Tick 循环、实时状态、兴趣管理和验证。

Individual skills in this repo

This repo contains 6 individual skills — each has its own dedicated page.

rivet-dev/rivetkit

RivetKit backend and Rivet Actor runtime guidance. Use for building, modifying, debugging, or testing Rivet Actors, registries, serverless/runner modes, deployment, or actor-based workflows.

rivet-dev/rivetkit-client-javascript

RivetKit JavaScript client guidance. Use for browser, Node.js, or Bun clients that connect to Rivet Actors with rivetkit/client, create clients, call actions, or manage connections.

rivet-dev/rivetkit-client-react

RivetKit React client guidance. Use for React apps that connect to Rivet Actors with @rivetkit/react, create hooks with createRivetKit, or manage realtime state with useActor.

rivet-dev/rivetkit-client-swift

RivetKit Swift client guidance. Use for Swift clients that connect to Rivet Actors with RivetKitClient, create actor handles, call actions, or manage connections.

rivet-dev/rivetkit-client-swiftui

RivetKit SwiftUI client guidance. Use for SwiftUI apps that connect to Rivet Actors with RivetKitSwiftUI, @Actor, rivetKit view modifiers, and SwiftUI bindings.

rivet-dev/sandbox-agent

Deploy, configure, and integrate Sandbox Agent - a universal API for orchestrating AI coding agents (Claude Code, Codex, OpenCode, Amp) in sandboxed environments. Use when setting up sandbox-agent server locally or in cloud sandboxes (E2B, Daytona, Docker), creating and managing agent sessions via SDK or API, streaming agent events and handling human-in-the-loop interactions, building chat UIs for coding agents, or understanding the universal schema for agent responses.

相关技能