Multiplayerのロゴ

Multiplayer

組織
SummerEngine
multiplayer

Start here for Summer multiplayer: how authority, clients, Worlds and Sessions fit, and what comes next.

概要

公開者SummerEngine
リポジトリsummer
スキル名multiplayer
スター
91
フォーク
8
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    SummerEngineがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルMultiplayerをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/SummerEngine/summer/tree/main/library/skills/multiplayer
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/SummerEngine/summer.git /tmp/summer
mkdir -p .claude/skills
cp -r /tmp/summer/library/skills/multiplayer .claude/skills/multiplayer
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでMultiplayerを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にMultiplayerを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Multiplayerは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

/multiplayer — how Summer multiplayer works

Read this first, whatever the user asked for: "multiplayer", "co-op", "PvP", "online", "play with friends", "lobby", "peer-to-peer", "host a game", "netcode", "sync players". It explains the model in one page and sends you to the skill that builds the next piece.

The picture

A Summer multiplayer game is one project with two entry scenes:

  • the client scene, which every player runs: input, camera, visuals, UI;
  • the authority scene, which runs headless as the match server and owns the rules.
text
   each player's device                   Summer hosting (or Local Play)
  ┌──────────────────────┐  my pose       ┌──────────────────────────────┐
  │ client scene         │ ─────────────► │ authority scene = one World  │
  │ moves its own player │  "collect"     │ checks every pose and request│
  │ draws everyone else  │ ─────────────► │ owns score, doors, items...  │
  │                      │ ◄───────────── │                              │
  └──────────────────────┘  state, events └──────────────────────────────┘
  • A running match is a World. Summer starts one authority for it; the game declares what a World is in world.json (a WorldDefinition).
  • A player joins with Summer.client.join(...) and gets a verified Session: their seat in that World, with a verified player identity.
  • Players find a World through a queue in summer.build.json. Hosted, Summer's matchmaking fills it; locally, Local Play starts the authority and N clients on your machine.
  • The same code runs locally and hosted. No if server, no local-only branches, no IP addresses.

There is no player-hosted server, so there is no host migration, and a player quitting never ends the match for the others.

How data moves

Both sides load one network composition (network/composition.tres). It declares every stream the game uses, and a Spawner node attaches it to the World:

You wantUseWho writes itSkill
My character movesOwner-written State group, one per playerthat player's client; the authority checks each posemultiplayer-movement
Everyone sees the score, a door, the round timerAuthority-written State group, World audiencethe authoritymultiplayer-state
Only I see my wallet, hand, inventoryAuthority-written State group, target-Session audiencethe authoritymultiplayer-state
A player wants to buy, open, collect, ready upCommandclient asks, authority accepts or refusesmultiplayer-state
A one-off effect (sparkle, sound, hit flash)Eventthe authoritymultiplayer-state

State is retained, so a late joiner gets the current value. Commands carry the sender's verified Session. Events are fire-and-forget.

The rules

  1. Each client moves its own character. Movement feels instant on every connection. The authority accepts or refuses each pose, and a refused pose snaps the player back.
  2. The authority owns every other fact. Clients never change shared state; they send a Command and show the result.
  3. Identity comes from the Session, never from a field a client sent.
  4. Never use the stock high-level multiplayer API in a Summer game: no @rpc, MultiplayerSynchronizer, MultiplayerSpawner, ENetMultiplayerPeer, multiplayer.is_server() or peer-ID branches. Their sender ids are transport peers, not verified players. Late joiners miss state, and the game cannot use Summer hosting, matchmaking or identity.
  5. Test under a bad network before calling anything done: Local Play with latency, jitter and loss (multiplayer-testing).

Words

WordMeaning
GameYour game on Summer; its id is gameId in summer.build.json. Summer.initialize() takes no ID: Summer knows which game is running
WorldOne running match or shared place, simulated by one authority
WorldDefinitionworld.json: which scenes run the client and the authority, lifetime, persistence
QueueHow players find a World; declared in summer.build.json
SessionOne player's verified seat in a World
CompositionThe network contract both sides load: State streams, Command and Event streams
State groupOne retained value (a pose, a scoreboard); one writer, an audience
CommandA request from a client, answered by the authority
EventA one-off message from the authority
Local PlayRuns the authority and N clients locally, with optional network emulation

Build it in this order

Each skill continues the same small game, so their code fits together:

  1. multiplayer-project: the files, both entry scenes, joining, and a first Local Play run.
  2. multiplayer-movement: each player moves their own character; others see it smoothly; the authority checks every pose.
  3. multiplayer-state: score, doors, private inventories, Commands and Events.
  4. multiplayer-testing: Local Play under latency and loss, bots, and what a passing run must show.
  5. multiplayer-publish: export the summer.games bundle and upload it as a Build.
  6. release-readiness: before players get a version, prove the server starts its authority scene and a real online join works.

Add Summer services

SkillWhat it addsWorks in Local Play?
summer-matchmakingQueues, match sizes, teams, the accept prompt, join failuresYes, without the accept prompt
summer-match-resultsEnding a match: winners, losers, rating changesYes
summer-leaderboardsRatings and Game-wide leaderboardsPartly; reading boards needs hosting
summer-partiesFriends queue together as a partyNo, hosted only
summer-friendsThe player's Summer friends and direct messagesNo, hosted only
summer-player-dataProgress that follows the player to any WorldYes, stored on disk
summer-world-savesWorlds that persist between sessionsYes, in memory
summer-world-chatText chat inside a WorldNo, hosted only
summer-storeSelling items for Sparks, owned itemsItems yes; the store is hosted only
summer-analyticsGame events for your analytics dashboardNo, hosted only

What people ask for, and what Summer does

They ask forOn Summer
"One player hosts", peer-to-peerA headless authority per match, started by Summer or by Local Play
Host migrationNot needed: no player is the authority
Join by IP, invite code, server browserNot available. Players join a queue; friends join as a party (summer-parties)
A lobbyA queue with minPlayers/maxPlayers and an accept prompt (summer-matchmaking)
"Sync the player's position"An owner-written pose group (multiplayer-movement)
"Tell everyone the door opened"An authority-written State group (multiplayer-state)
"The client asks the host to buy something"A Command validated with the verified Session (multiplayer-state)
Save progressPlayer data for the player, World saves for the place (summer-player-data, summer-world-saves)

Start

Check what exists: summer.build.json, world.json, network/, authority/, client/.

  • None of them: start with multiplayer-project.
  • They exist: pick the skill for the piece you need from the tables above.
  • The game already uses @rpc or MultiplayerSynchronizer: tell the user it needs moving to Summer's networking. Then follow multiplayer-project and port one system at a time: movement first, then state.

From a shell

No Summer MCP tools in this session? Run each one as a command; when summer --version is missing or below 4.0, use npx -y summer-engine@latest in place of summer. Fields are flags in kebab-case (--scene-path res://main.tscn) or one --input '<json>', and summer ops describe <op> prints the exact input. The summer-cli skill has the rest.

In this skillCommand
summer_get_scene_treesummer engine get-scene-tree
summer_get_script_errorssummer engine get-script-errors
summer_project_settingsummer engine project-setting

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Multiplayer」では何ができますか?

Start here for Summer multiplayer: how authority, clients, Worlds and Sessions fit, and what comes next.

TypingMindでMultiplayerを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Multiplayerはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにMultiplayerをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/SummerEngine/summer/tree/main/library/skills/multiplayerを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Multiplayerを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Multiplayerは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもMultiplayerを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Multiplayer」は無料ですか?

はい。SummerEngineがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇