OneCompanion

Entwickler

Veröffentliche dein Browserspiel auf OneCompanion.

Entwickler-Leitfaden lesen

Bring dein Browserspiel mit. Den Rest liefern wir.

Online-Räume, Spielerkonten, gespeicherter Fortschritt, eine Store-Seite in 20 Sprachen und unsere Desktop-App, kostenlos. Die Veröffentlichung hier ist nicht exklusiv: Dein Spiel kann auch überall sonst erscheinen.

  • Mehrspieler ohne Server

    Relay- und Lockstep-Räume laufen bei uns. Dein Spiel sendet Bytes; wir kümmern uns um Räume, Einladungslinks, die Reihenfolge der Befehle und Nachzügler.

  • Spieler, startklar

    Gäste spielen ohne Anmeldung, ein Konto gilt für alle Spiele, und die Plattform speichert den Fortschritt. Serverseitig laufende Spiele können gewertet werden, mit Bestenlisten und Turnieren.

  • 20 Sprachen, Browser und Desktop

    Deine Store-Seite erreicht Spieler in 20 Sprachen, auch in solchen, die von rechts nach links geschrieben werden. Dein Spiel läuft im Browser und in unserer Desktop-App, mit Mauszeigersperre, Vollbild und Gamepads, wenn du sie anforderst.

Hier schon spielbar

Spiele unabhängiger Entwickler laufen hier mit dem Online-Modus, den wir ergänzt haben, und unsere eigenen Spiele nutzen denselben Vertrag wie deins.

Deine Studios

Melde dich an, um deine Studios zu sehen.

Anmelden

So funktioniert's

Du baust dein Spiel in JavaScript oder TypeScript gegen einen kleinen Vertrag: eine mount-Funktion für den Client und, falls dein Spiel eins braucht, ein Spielmodul für den Server. Unser Kommandozeilen-Tool baut es, prüft es und lädt es hoch.

Unser Team prüft jede Version, bevor Spieler sie sehen. OneCompanion liefert dein Spiel in einem abgeschotteten Frame aus: Es sieht nie die Konten der Spieler, erreicht das Netzwerk nur über seinen Raum und speichert seine Daten bei der Plattform.

Multiplayer

none
Nur solo, keine Räume.
relay
Der Raum leitet Nachrichten zwischen Spielern weiter. Gut für Koop- und Partyspiele. Ohne Wertung.
lockstep
Der Raum ordnet die Befehle aller Spieler nach Schritt und speichert das Protokoll für Nachzügler. Deine Simulation muss deterministisch sein. Ohne Wertung.
server
Dein eigenes Spielmodul läuft neben dem Raum und entscheidet jedes Ergebnis. Nur auf Einladung.

Über die Kommandozeile veröffentlichen

Erstelle auf deiner Studioseite ein Token und führe dann diese Befehle im Ordner deines Spiels aus:

Mit Bun

git clone https://github.com/onecompanion-net/sample-game
cd sample-game && bun install
bun run validate
export ONECOMPANION_API=https://onecompanion.net
export ONECOMPANION_TOKEN=oc_…
bun run publish:game

Mit npm

git clone https://github.com/onecompanion-net/sample-game
cd sample-game && npm install
npm run validate
export ONECOMPANION_API=https://onecompanion.net
export ONECOMPANION_TOKEN=oc_…
npm run publish:game

npm installiert die Pakete und führt die Skripte aus, aber die Tools selbst laufen auf Bun 1.3 oder neuer, also installiere Bun auf jeden Fall.

Ein neues Spiel beginnen

Noch kein Spiel? Starte mit einer kleinen spielbaren Vorlage: solo, relay (die Spieler teilen sich einen Bildschirm) oder lockstep (jeder Spieler befehligt seine eigene Einheit). Sie besteht die Prüfungen direkt nach dem Erstellen.

bunx github:onecompanion-net/game-cli init my-game --template relay
cd my-game && bun install && bun run dev

Übersetzungen: Der i18n-Befehl legt jede fehlende Sprache als Kopie des Englischen an und gibt einen Prompt aus, mit dem dein KI-Coding-Tool sie übersetzt. Uploads lehnen unübersetzte Kopien ab.

Entwickler-Leitfaden lesen

Mit einem KI-Coding-Tool integrieren

Öffne den Ordner deines Spiels in Claude Code, Cursor, GitHub Copilot oder einem anderen KI-Coding-Tool und gib ihm diesen Prompt. Es liest unseren Leitfaden, passt dein Spiel an die Plattform an, prüft es und stoppt vor dem Veröffentlichen.

I want to publish my browser game on OneCompanion (https://onecompanion.net), which hosts it, lists it in its catalog and runs its multiplayer rooms. Help me integrate this project with the platform and get it ready to upload.

1. Read the developer guide first: https://onecompanion.net/developers/guide.md. It is the contract; where my code disagrees with it, the guide wins. When unsure, compare with the sample game: https://github.com/onecompanion-net/sample-game.
   Use the OneCompanion integration skill as well: https://github.com/onecompanion-net/skills (the skill is skills/onecompanion-integration). If it is not installed in this tool, read its SKILL.md and the reference files it points to; use its templates (contract, client, relay, lockstep, dev host) instead of writing them from scratch.
2. Study this project and show me a short plan before you change anything: the engine, how the game starts and what it draws into, where its text lives, how it saves, any network code, and which room kind fits (none, relay or lockstep; server only if we were invited).
3. Integrate without breaking how the game runs today:
   - Add game.json with "studio": "<my-studio-handle>", an "id" I approve (it becomes the URL and can never be reused) and "version": "1.0.0".
   - Add a client entry that exports mount(host, options) and returns { onMessage, pause, resume, dispose }. Copy the types from the guide into src/contract.ts; import nothing from the platform. Draw only inside host, send onEvent({ type: 'ready' }) after the first frame, and make dispose() undo everything (animation loops, timers, listeners, DOM nodes, WebGL contexts, audio, workers).
   - Move every player-facing string into messages/en.json and show it through options.t (ICU plurals for counts). Lay out with CSS logical properties so right-to-left works.
   - Save with options.storage instead of localStorage, IndexedDB or cookies. Remove fetch and WebSocket calls to other hosts; load our own files with relative URLs.
   - For multiplayer, send with options.online.send and receive in onMessage, using the guide's byte formats exactly, and validate every message. For lockstep, keep the simulation deterministic (the room's seed, no Math.random() or clock).
   - Write listing/en.json (with "play" and "modes" lines if they fit the game); step 6 translates it. Prepare the art at the sizes in the guide, set the rating, and list every third-party asset and its licence under rights.
   - Keep the client entry and its static imports under 450 KB gzip; load the rest with dynamic import().
4. Add the CLI as a dev dependency from GitHub, never from the npm registry by name: "bun add -d github:onecompanion-net/game-cli" (or "npm install -D github:onecompanion-net/game-cli"). Add the scripts "validate": "onecompanion-game validate .", "i18n": "onecompanion-game i18n ." and "publish:game": "onecompanion-game publish .". The tools need Bun 1.3 or later even when I use npm.
5. Copy the sample's dev page (index.html and src/dev.ts) so I can test solo, with ?net=room in two tabs, and with &lang=vi and &dir=rtl.
6. Run the i18n script and translate every file it marks "$untranslated" (the 12 launch store locales are required; in-game languages are up to me), removing the marker from each file you finish. Then run the skill's preflight check (node <skill folder>/scripts/preflight.mjs ., from an installed or cloned copy of the skill), then the validate script, and fix every issue until both pass.
7. Then stop. Tell me what you changed, what you could not do and what I should check by hand. Do not publish: I will set ONECOMPANION_API=https://onecompanion.net and ONECOMPANION_TOKEN in my own terminal and run the publish:game script. Never ask for the token, print it, write it to a file or commit it.

Ersetze <my-studio-handle> durch das Handle deines Studios oder kopiere den Prompt von deiner Studioseite, wo es schon eingetragen ist.

Füge dein Studio-Token nie in einen KI-Chat ein. Setze es beim Veröffentlichen in deinem eigenen Terminal.

Regeln

  • Besitze oder lizenziere alles in deinem Spiel und liste auf, was du von anderen nutzt.
  • Übersetze den Store-Eintrag in alle 12 Sprachen. Texte im Spiel brauchen Englisch; füge jede Sprache hinzu, die du kannst.
  • Keine gefälschten Anmeldefenster, Plattform-Dialoge oder Links aus dem Spiel heraus. Stufe dein Spiel ehrlich ein.