브라우저 게임만 가져오세요. 나머지는 저희가 더합니다.
온라인 방, 플레이어 계정, 진행 상황 저장, 20개 언어의 스토어 페이지, 데스크톱 앱까지 무료입니다. 이곳의 출시는 비독점이라 다른 곳에서도 게임을 낼 수 있습니다.
서버 없는 멀티플레이
relay와 lockstep 방은 저희 쪽에서 돌아갑니다. 게임은 바이트만 보내면 되고, 방, 초대 링크, 명령 순서, 중간 참가는 저희가 처리합니다.
준비된 플레이어 환경
게스트는 가입 없이 플레이하고, 계정 하나로 모든 게임을 즐기며, 진행 상황은 플랫폼이 저장합니다. 서버에서 돌아가는 게임은 랭크가 적용되어 리더보드와 토너먼트를 쓸 수 있습니다.
20개 언어, 브라우저와 데스크톱
스토어 페이지가 오른쪽에서 왼쪽으로 쓰는 언어를 포함해 20개 언어로 플레이어에게 닿습니다. 게임은 브라우저와 데스크톱 앱에서 돌아가며, 요청하면 포인터 잠금, 전체 화면, 게임패드도 지원합니다.
이미 여기서 플레이 중
독립 개발자의 게임이 저희가 더한 온라인 플레이와 함께 이곳에서 돌아가고, 저희 게임도 여러분의 게임과 같은 계약을 사용합니다.
내 스튜디오
로그인하면 스튜디오를 볼 수 있어요.
로그인진행 방식
작은 계약 하나에 맞춰 JavaScript 또는 TypeScript로 게임을 만들어요: 클라이언트용 mount 함수와, 필요하면 서버용 게임 모듈. 명령줄 도구가 빌드, 검사, 업로드를 해 줘요.
플레이어에게 공개되기 전에 팀이 모든 버전을 검토해요. OneCompanion은 게임을 샌드박스 프레임에서 제공해요: 게임은 플레이어 계정을 볼 수 없고, 방을 통해서만 네트워크에 접근하며, 저장 데이터는 플랫폼이 보관해요.
멀티플레이
- none
- 솔로 전용, 방 없음.
- relay
- 방이 플레이어 간 메시지를 전달해요. 협동 및 파티 게임에 적합해요. 비랭크.
- lockstep
- 방이 모든 플레이어의 명령을 스텝 순서로 정렬하고, 늦게 참가한 플레이어를 위해 로그를 보관해요. 시뮬레이션이 결정적이어야 해요. 비랭크.
- server
- 자체 게임 모듈이 방과 함께 실행되며 모든 결과를 결정해요. 초대제.
명령줄에서 출시하기
스튜디오 페이지에서 토큰을 만든 다음, 게임 폴더에서 다음 명령을 실행하세요:
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 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은 패키지를 설치하고 스크립트를 실행하지만, 도구 자체는 Bun 1.3 이상에서 실행되므로 어느 쪽이든 Bun을 설치하세요.
새 게임 시작하기
아직 게임이 없나요? 작고 플레이 가능한 템플릿으로 시작하세요. solo, relay(플레이어가 화면을 공유), lockstep(각 플레이어가 자기 유닛을 지휘) 중에서 고를 수 있고, 생성하자마자 검사를 통과합니다.
bunx github:onecompanion-net/game-cli init my-game --template relay
cd my-game && bun install && bun run dev 번역: i18n 명령은 빠진 언어마다 영어 사본을 만들고, AI 코딩 도구가 번역하도록 프롬프트를 출력합니다. 번역되지 않은 사본은 업로드할 수 없습니다.
AI 코딩 도구와 연동하기
Claude Code, Cursor, GitHub Copilot 등 AI 코딩 도구에서 게임 폴더를 열고 이 프롬프트를 입력하세요. 가이드를 읽고, 게임을 플랫폼에 맞게 수정하고, 검사한 다음 출시 직전에 멈춰요.
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. <my-studio-handle>를 스튜디오 핸들로 바꾸거나, 핸들이 채워진 스튜디오 페이지에서 프롬프트를 복사하세요.
스튜디오 토큰을 AI 채팅에 절대 붙여 넣지 마세요. 출시할 때 내 터미널에서 직접 설정하세요.
규칙
- 게임의 모든 콘텐츠를 소유하거나 사용 허가를 받고, 다른 사람의 것을 사용했다면 명시하세요.
- 스토어 정보를 12개 언어 모두로 번역하세요. 게임 내 텍스트는 영어가 필수이며, 가능한 한 많은 언어를 추가하세요.
- 가짜 로그인 창, 플랫폼 대화상자, 게임 밖으로 나가는 링크는 금지예요. 게임 등급은 정직하게 매기세요.