Tarayıcı oyunları
Dil, ülke ve para birimi: TR · Fiyatlar

Bu cihazdaki bir çerezde saklanır. Başka para birimindeki fiyatlar yaklaşıktır; her ilan satıcının kendi fiyatını da gösterir. Kurlar Exchange Rate API'den, her gün güncellenir.

Tarayıcı oyunları

Sofala için tarayıcı oyunu yapın

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.

Yapay zekâ ajanınızla

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 oyunu başlatır. Onu ZIP'in en üstüne ya da ZIP'in tek klasörüne koyun.
  • Oyunun yüklediği her şey ZIP'in içindedir ve göreli yollarla bağlanır: Build/game.wasm, asla /Build/game.wasm ya da kendi sitenizin tam adresi değil.
  • Sıkıştırılmış en fazla 1 GB, 10 000 dosya ve açılmış hali 2 GB.

Motorlar ve dosya türleri

  • Tarayıcıda çalışan her oyun olur: HTML5 canvas, WebGL ve WebGPU (three.js, Babylon.js, PixiJS, Phaser, PlayCanvas), WebAssembly (Emscripten, Rust, Bevy, Go), Godot 3 ve 4, GameMaker, Construct, Defold, PICO-8, RPG Maker ve love.js ile LÖVE.
  • Unity WebGL: her sıkıştırma çalışır. Brotli ve gzip dosyaları doğru başlıklarla gönderilir, bu yüzden decompression fallback gerekmez.
  • JavaScript modülleri, import map'ler, .mjs dosyaları, glTF ve GLB modelleri, KTX2 dokuları ve WAV, OGG, Opus ve MP3 sesleri doğru türle gönderilir.

Çok iş parçacıklı oyunlar

  • İş parçacığı (SharedArrayBuffer) kullanan yapılar, örneğin iş parçacıkları açık Godot 4, -pthread ile Emscripten ve çok iş parçacıklı Unity ya da love.js yapıları, kaynaklar arası yalıtılmış bir sayfaya ihtiyaç duyar. Sofala bunları ZIP'i yüklediğinizde tanır ve öyle çalıştırır. Yalnızca Brotli ile sıkıştırılmış bir Unity yapısı için ilanda “SharedArrayBuffer gerektirir” seçeneğini işaretleyin.
  • Yalıtılmış bir oyun, CORS ya da Cross-Origin-Resource-Policy başlıkları göndermedikçe başka sitelerden betik, görsel veya ses yükleyemez; bu yüzden her şeyi ZIP'e koyun. İş parçacığı kullanmayan oyunlar başka sitelerden yükleyebilir.

Oyunun içinde

  • localStorage ya da IndexedDB'deki kayıtlar oyuncunun tarayıcısında, her oyun için ayrı kalır.
  • Oyun tam ekran, fare imleci, oyun kumandaları, ses ve WebXR kullanabilir. Sofala'nın sayfasında da bir tam ekran düğmesi vardır.
  • Kendi adresinde, yalıtılmış bir çerçevede çalışır: açılır pencere açamaz, sayfadan ayrılamaz, oyuncunun Sofala hesabını göremez. Oyunculardan oyun içinde giriş yapmalarını ya da ödeme yapmalarını istemeyin; oyunu Sofala satar.
  • Çok oyunculu mod için kendi sunucunuz gerekmez: Sofala odaları yürütür (aşağıda). Bir oyun kendi sunucunuzla da konuşabilir.

Telefonlar ve tabletler

  • Dokunmaları oyununuzun bir öğesinde dinleyin, örneğin canvas’ında, window veya document üzerinde değil: çerçevenin içinde iPhone dokunmaları her zaman window’a iletmez.
  • O öğeye touch-action: none CSS’ini verin ve { passive: false } ile eklenen touchstart ve touchmove dinleyicilerinde preventDefault() çağırın. Yoksa telefon kaydırmayı sayfanın kaydırılması sanar ve birkaç pikselden sonra oyununuza haber vermeyi bırakır.
  • Pointer olayları (pointerdown, pointermove) telefonlarda da gelir. Bir oyun ikisini de dinleyebilir, yeter ki bir parmak bir kez sayılsın.
  • Snake Party bunların hepsini yapar ve kaydırmaları iPhone’da çalışır; kaynak kodu nasıl yapıldığını gösterir.
  • Oyununuzu bir motor yaptıysa, dokunmatik giriş motorun işidir. Ne ile yapılmış olursa olsun, yayımlamadan önce oyunu bir telefonda deneyin.
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 });

Çok oyunculu

  • Sofala odaları yürütür, yani oyununuzun sunucuya ihtiyacı yok. sofala-game-1.1.js dosyasını ZIP’inizde index.html’in yanına koyun, kendi betiğinizden önce yükleyin, tek bir satır oyuncuyu başkalarıyla bir odaya alır.
  • Bir oyuncunun gönderdiği, odadaki diğerlerine gönderildiği sırayla ulaşır. Bir odada en fazla 32 oyuncu olur ve her biri saniyede en fazla 16 KB’lık 60 mesaj gönderebilir: sıra tabanlı, parti ve sakin gerçek zamanlı oyunlar için uygun. Hızlı bir nişancı oyunu yine kendi sunucusunu ister.
  • Sofala sizin hiçbir kodunuzu çalıştırmaz. Odada en uzun süredir bulunan oyuncu ev sahibidir: oyunu onun yürütmesine ve diğerlerine neyin değiştiğini söylemesine izin verin. Ev sahibi çıkınca sıradaki oyuncu ev sahibi olur.
  • Hızlı oyun herkese açık odaları doldurur. Özel bir odanın, arkadaşların katılması için bir kodu vardır.
  • Oyun her oyuncuyu oyununuzda hep aynı kalan bir kimlikle ve oyuncu adıyla tanır, asla bir e-posta adresi veya hesapla değil. Oyuncu adı, hesap sayfasında başka bir ad seçmediyse kişinin Sofala adıdır; oyununuz katılırken bir ad yazmasına da izin verebilir. Ücretsiz bir oyunu giriş yapmadan oynayanlar misafirdir.
  • Kendi bilgisayarınızda da aynı şekilde çalışır: oyunu localhost’tan açın, odalar size ait bir test alanı olur.
  • Yine de bir sunucu çalıştırıyorsanız, Sofala.token() ona oyuncunun kim olduğunu söyleyen imzalı bir token verir. Bunu şu adresteki açık anahtarlarla doğrulayın: 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>

Odaların yapabildiği her şey sofala-game-1.1.js dosyasının başında listelenir. Örnek alınacak tam bir oyun, tek dosyada: Snake Party (kaynak kodu).

Satış

  • Ücretsiz yapın ya da KDV dahil en az €0,50 fiyat koyun. KDV hariç fiyatı, Sofala'nın %5 komisyonu ve Stripe ücreti düşülerek Stripe üzerinden alırsınız: önce Satışlar sayfanızda ödemeleri ayarlayın.
  • İlanın ilk kapak fotoğrafı, oyunun play.sofala.market'teki kutucuğudur; en iyisi geniş, 16:9 bir ekran görüntüsüdür. Daha fazla ekran görüntüsü ve bir önizleme videosunu ilanın düzenleme sayfasında ekleyin.
  • Sofala’dan bir kişi her yeni oyunu yayına girmeden önce oynar; yayına girince e-posta alırsınız.
  • Yayındaki bir oyunu güncellemek için yeni ZIP’i yükleyin (ajanınız: replace ile upload_files). Yaklaşık bir dakikada eskisinin yerini alır, yeni bir kontrol olmadan ve aynı adreste, böylece oyuncular kayıtlarını korur.

Oyununuzu yayımlayın