브라우저 게임
언어·국가·통화: KO · 가격

이 기기의 쿠키에 저장됩니다. 다른 통화 가격은 대략적인 값이며, 매물마다 판매자 원래 가격도 표시됩니다. 환율 출처: Exchange Rate API, 매일 갱신.

브라우저 게임

Sofala용 브라우저 게임 만들기

Players start your game right on play.sofala.market, with nothing to install: free games at once, paid ones after one payment. The easy way is to let an AI agent build and upload it; doing it by hand comes after.

AI 에이전트와 함께

You do not need to know how to program. A coding agent writes the game with you, uploads it to Sofala, writes the listing and publishes it when you say it’s done. Any agent that works with MCP servers can do this; these steps use Claude Code on Windows, and we recommend it with the model Opus 5.5 or newer.

  1. Get a Claude accountGo to claude.ai, create an account and choose a paid plan (Pro or higher). Claude Code is not part of the free plan.
  2. Open PowerShellPowerShell is a window where you type commands. Press the Windows key, type powershell and press Enter. A window opens with a line that starts with PS C:\Users\ and your name. That is where the next lines go.
  3. Install Claude CodeCopy this line, paste it into PowerShell (right-click pastes) and press Enter. Nothing seems to happen while it downloads; wait until it says it is done.
    irm https://claude.ai/install.ps1 | iex
    Now close PowerShell and open it again. This matters: the window you installed from does not know the new program yet.
  4. Check that it worksIn the new PowerShell window, this prints a version number:
    claude --version
    Does it say that claude is not recognized? Then Windows has not been told where Claude Code is. Paste these two lines, one after the other, close PowerShell, open it again and try once more:
    $currentPath = [Environment]::GetEnvironmentVariable('PATH', 'User')
    [Environment]::SetEnvironmentVariable('PATH', "$currentPath;$env:USERPROFILE\.local\bin", 'User')
    Still stuck? Claude Code’s page for installation problems lists the other causes.
  5. Add Sofala, before you start Claude CodeThis tells Claude Code where Sofala is, so it can upload and publish for you. Paste it and press Enter:
    claude mcp add --transport http Sofala https://sofala.market/mcp
  6. Start Claude CodeType this and press Enter:
    claude
    The first time, your browser opens and asks you to sign in with your Claude account. Do that and come back to the PowerShell window.
    Does it stop to ask permission too often? Start it with this line instead, with no checks at all. It then does everything without asking, also when it gets something wrong, so use it only if you accept that; Anthropic advises it only on a computer with nothing on it that you would miss.
    claude --dangerously-skip-permissions
  7. Connect it to your Sofala accountInside Claude Code, type the line below and press Enter, pick Sofala and choose to sign in. Your browser opens sofala.market: type your email address, then the code Sofala emails you. That also makes your Sofala account if you have none; it is free and has no password. Then press Allow. Back in Claude Code, Sofala now shows as connected.
    /mcp
  8. Pick the modelType the line below, press Enter and choose Opus 5.5 or newer. A game is a lot of code, and smaller models make more mistakes.
    /model
  9. Ask for your gameNow say what you want, in your own words and in any language. For example:
    Make a simple online multiplayer snake game that runs in the browser, for Sofala. Use Sofala’s multiplayer rooms so friends can join. Let me test it, and when I say it’s done, put it on Sofala as a free game.
  • When the game is ready to try, your agent gives you a link to play it on Sofala before anyone else can see it. Say what to change, as often as you like: “make the snakes faster”, “add a score board”.
  • Happy with it? Say “publish it”. A person at Sofala plays each new game before it goes up; you get an email when it is live.
  • To change a live game later, open PowerShell, start Claude Code again and ask. The new build replaces the old one at the same address.
  • On a Mac or on Linux, open Terminal instead of PowerShell and install with the line on Claude Code’s setup page; the other steps are the same. Using another agent? Add a remote MCP server with the address https://sofala.market/mcp.

For manual game devs

Building or packaging the game yourself? This is what Sofala expects. An AI agent follows the same rules; it reads them from Sofala.

ZIP

  • index.html이 게임을 시작합니다. ZIP 맨 위나 ZIP의 유일한 폴더 안에 두세요.
  • 게임이 불러오는 모든 것은 ZIP 안에 있고 상대 경로로 연결됩니다: Build/game.wasm이며, /Build/game.wasm이나 내 사이트의 전체 주소는 쓰지 않습니다.
  • 압축 시 1 GB까지, 파일 10 000개, 압축 해제 시 2 GB까지.

엔진과 파일 형식

  • 브라우저에서 실행되는 게임이면 무엇이든 됩니다: HTML5 canvas, WebGL과 WebGPU(three.js, Babylon.js, PixiJS, Phaser, PlayCanvas), WebAssembly(Emscripten, Rust, Bevy, Go), Godot 3과 4, GameMaker, Construct, Defold, PICO-8, RPG Maker, love.js를 통한 LÖVE.
  • Unity WebGL: 어떤 압축이든 작동합니다. Brotli와 gzip 파일은 올바른 헤더와 함께 전송되므로 decompression fallback이 필요 없습니다.
  • JavaScript 모듈, import map, .mjs 파일, glTF와 GLB 모델, KTX2 텍스처, WAV·OGG·Opus·MP3 소리는 모두 올바른 형식으로 전송됩니다.

멀티스레드 게임

  • 스레드(SharedArrayBuffer)를 쓰는 빌드, 예를 들어 스레드를 켠 Godot 4, -pthread를 쓴 Emscripten, 스레드를 쓰는 Unity나 love.js 빌드는 교차 출처 격리된 페이지가 필요합니다. Sofala는 ZIP을 올릴 때 이를 감지해 그 방식으로 실행합니다. Brotli로만 압축한 Unity 빌드라면 매물에서 “SharedArrayBuffer 필요”에 체크하세요.
  • 격리된 게임은 CORS나 Cross-Origin-Resource-Policy 헤더를 보내지 않는 다른 사이트에서 스크립트, 이미지, 소리를 불러올 수 없으니 모두 ZIP에 넣으세요. 스레드를 쓰지 않는 게임은 다른 사이트에서 불러와도 됩니다.

게임 안에서

  • localStorage나 IndexedDB에 저장한 데이터는 플레이어의 브라우저에 게임별로 따로 남습니다.
  • 게임은 전체 화면, 마우스 포인터, 게임패드, 소리, WebXR을 쓸 수 있습니다. Sofala 페이지에도 전체 화면 버튼이 있습니다.
  • 게임은 자체 주소의 샌드박스 프레임에서 실행됩니다. 팝업을 열거나 페이지를 떠나거나 플레이어의 Sofala 계정을 볼 수 없습니다. 게임 안에서 로그인이나 결제를 요구하지 마세요. 판매는 Sofala가 합니다.
  • 멀티플레이에 직접 운영하는 서버는 필요 없어요. Sofala가 방을 운영해요(아래 참고). 게임이 직접 운영하는 서버와 통신해도 돼요.

휴대폰·태블릿

  • 터치는 window나 document가 아니라 canvas 같은 게임 요소에서 받으세요. 프레임 안에서는 iPhone이 터치를 window로 넘기지 않을 때가 있어요.
  • 그 요소에 CSS touch-action: none을 지정하고, { passive: false }로 추가한 touchstart와 touchmove 리스너에서 preventDefault()를 호출하세요. 그러지 않으면 휴대폰이 스와이프를 페이지 스크롤로 받아들여 몇 픽셀 뒤에는 게임에 알리지 않아요.
  • 휴대폰에서도 포인터 이벤트(pointerdown, pointermove)가 와요. 손가락 하나를 한 번으로 센다면 두 가지를 모두 받아도 돼요.
  • Snake Party는 이 모든 걸 하고, iPhone에서도 스와이프가 잘 돼요. 방법은 소스 코드에서 볼 수 있어요.
  • 게임 엔진으로 만든 게임이라면 터치 입력은 엔진이 맡아요. 무엇으로 만들었든 공개하기 전에 휴대폰에서 꼭 해 보세요.
const area = document.querySelector('canvas');   // an element of the game, not window
area.style.touchAction = 'none';
let from = null;
area.addEventListener('touchstart', e => {
  e.preventDefault();
  from = [e.touches[0].clientX, e.touches[0].clientY];
}, { passive: false });
area.addEventListener('touchmove', e => {
  e.preventDefault();
  if (!from) return;
  const x = e.touches[0].clientX, y = e.touches[0].clientY, dx = x - from[0], dy = y - from[1];
  if (Math.abs(dx) < 20 && Math.abs(dy) < 20) return;
  from = [x, y];
  swipe(Math.abs(dx) > Math.abs(dy) ? (dx > 0 ? 'right' : 'left') : (dy > 0 ? 'down' : 'up'));
}, { passive: false });

멀티플레이

  • Sofala가 방을 운영하니 게임에 서버가 필요 없어요. sofala-game-1.1.js을(를) ZIP 안 index.html 옆에 두고, 내 스크립트보다 먼저 불러오면 코드 한 줄로 플레이어를 다른 사람과 같은 방에 넣을 수 있어요.
  • 한 플레이어가 보낸 것은 보낸 순서대로 방 안의 다른 사람에게 전달돼요. 방 하나에는 최대 32명이 들어가고, 각자 초당 60개, 개당 16KB까지 메시지를 보낼 수 있어요. 턴제, 파티, 느긋한 실시간 게임에 알맞고, 빠른 슈팅 게임은 여전히 전용 서버가 필요해요.
  • Sofala는 여러분의 코드를 실행하지 않아요. 방에 가장 오래 있던 플레이어가 호스트예요. 호스트가 게임을 진행하고 무엇이 바뀌었는지 다른 사람에게 알리게 하세요. 호스트가 나가면 다음 플레이어가 호스트가 돼요.
  • 빠른 시작은 공개 방을 채워요. 비공개 방에는 친구가 들어올 수 있는 코드가 있어요.
  • 게임은 각 플레이어를 게임 안에서 바뀌지 않는 ID와 플레이어 이름으로 알아보고, 이메일 주소나 계정으로는 알아보지 않아요. 플레이어 이름은 계정 페이지에서 다른 이름을 고르지 않았다면 Sofala 이름이에요. 게임에서 참여할 때 이름을 입력하게 해도 돼요. 로그인하지 않고 무료 게임을 하는 사람은 게스트예요.
  • 내 컴퓨터에서도 똑같이 돼요. localhost에서 게임을 열면 방은 나만의 테스트 공간이 돼요.
  • 그래도 서버를 운영한다면, Sofala.token()이 플레이어가 누구인지 알려 주는 서명된 토큰을 서버에 줘요. https://sofala.market/game-api/keys의 공개 키로 검증하세요.
<script src="sofala-game-1.1.js"></script>
<script type="module">
  const room = await Sofala.rooms.quick({ max: 4 });   // a room with other players, or a new one

  room.on('message', (data, from) => { /* from.name did something */ });
  room.on('enter', peer => { });
  room.on('exit', peer => { });

  room.send({ move: 'e2e4' });                         // to everyone else in the room
</script>

방으로 할 수 있는 모든 것은 sofala-game-1.1.js 맨 위에 정리되어 있어요. 참고할 수 있는 게임 전체가 파일 하나에: Snake Party (소스 코드).

판매하기

  • 무료로 하거나 부가세 포함 €0.50 이상의 가격을 정하세요. 부가세를 뺀 가격에서 Sofala 수수료 5%와 Stripe 수수료를 뺀 금액을 Stripe로 받습니다. 먼저 판매 페이지에서 정산을 설정하세요.
  • 매물의 첫 커버 사진이 play.sofala.market에서 게임의 타일이 됩니다. 가로로 넓은 16:9 스크린샷이 가장 좋습니다. 스크린샷과 미리보기 동영상은 매물 수정 페이지에서 더 추가하세요.
  • 새 게임은 공개 전에 Sofala 담당자가 직접 플레이해요. 공개되면 이메일로 알려 드려요.
  • 공개된 게임을 업데이트하려면 새 ZIP을 업로드하세요(에이전트라면 upload_files에 replace). 1분 정도면 이전 것을 대체하고, 새로 심사하지 않으며 주소도 그대로라서 플레이어의 저장 데이터가 유지돼요.

게임 공개하기