Logo de Multiplayer

Multiplayer

Organização
SummerEngine
multiplayer

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

Visão geral

Publicado porSummerEngine
Repositóriosummer
Nome da habilidademultiplayer
Estrelas
91
Forks
8
Arquivos incluídos
1
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    Habilidades de IA são Markdown simples, não código específico de um provedor, por isso funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • 1 arquivos incluídos

    Scripts, modelos de documentos e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente leitura e nunca são executados.

  • Código aberto

    Publicada por SummerEngine no GitHub. Leia o conteúdo-fonte antes de instalar.

Instalação

Instale a habilidade de IA Multiplayer no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL da pasta da habilidade exibida abaixo e confirme.
    https://github.com/SummerEngine/summer/tree/main/library/skills/multiplayer
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Nova habilidade → Via URL GitHub, depois cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Multiplayer em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Multiplayer automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Multiplayer não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

/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

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Multiplayer faz?

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

Por que usar Multiplayer no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. Multiplayer é escrito em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. O TypingMind usa suas próprias chaves de API, então o pagamento é feito diretamente aos provedores, em vez de uma assinatura por licença de usuário, e suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Multiplayer no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/SummerEngine/summer/tree/main/library/skills/multiplayer. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Multiplayer?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Multiplayer?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Multiplayer com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Multiplayer é gratuita?

Sim. A habilidade é publicada no GitHub por SummerEngine sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, modelos de documento ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas para chamar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA fornece conhecimento e um processo ao modelo: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇