# ZokoGames developer documentation

> How to build an HTML5 game, add the ZokoGames SDK, test it, submit it for review and get paid. Written for studios and for the coding agents that work with them.

Every page below links to its raw Markdown. Add `.md` to any docs page URL for the same. All English pages as one file: [llms-full.txt](https://docs.zokogames.com/llms-full.txt) (about 1 MB; fetch single pages instead of reading it whole).

## Start here

- [For AI coding agents](https://docs.zokogames.com/getting-started/for-ai-agents.md)
- [Your first game live in 30 minutes](https://docs.zokogames.com/getting-started/quick-start.md)
- [Copy-paste example: one index.html](https://docs.zokogames.com/getting-started/one-file-example.md)
- [Introduction, init and errors](https://docs.zokogames.com/sdk/introduction.md)
- [Limits at a glance](https://docs.zokogames.com/requirements/limits.md)
- [Troubleshooting](https://docs.zokogames.com/guides/troubleshooting.md)

## Getting started

- [Introduction](https://docs.zokogames.com/getting-started/introduction.md): How a game gets from your machine to a full launch on ZokoGames, and what each stage expects from you.
- [Your first game live in 30 minutes](https://docs.zokogames.com/getting-started/quick-start.md): The one path from zero to a submitted build - access, SDK tag, three calls, local test, Preview tool, zip and upload - with what you should see at every step.
- [Build a minimal game in 15 minutes](https://docs.zokogames.com/getting-started/first-game.md): A complete two-file game (index.html and game.js) that passes upload validation and turns every required item of the Preview checklist green, with each SDK call explained.
- [Copy-paste example: one index.html](https://docs.zokogames.com/getting-started/one-file-example.md): A complete, working one-file game using the real SDK script - init, loading, gameplay start and stop, one rewarded ad with a fallback, save and load - plus the exact commands to test it locally and zip it.
- [Starter kits](https://docs.zokogames.com/getting-started/starter-kits.md): Five small, runnable templates (plain HTML5, Vite with TypeScript, Phaser, PlayCanvas, GDevelop) already wired to the ZokoGames SDK.
- [Testing with local mode and the Preview tool](https://docs.zokogames.com/getting-started/local-testing.md): Test your game on your own machine with the SDK mock, in the public Preview tool, and in the private build preview inside the developer console.
- [Testing checklist before you submit](https://docs.zokogames.com/getting-started/testing-checklist.md): The three checklists your game really meets - the Preview tool, the build preview in the console and the reviewer's QA list - line by line, with how to check each one yourself.
- [Submission walkthrough](https://docs.zokogames.com/getting-started/submission-walkthrough.md): Step by step through the developer console, from creating a studio to the review decision, and what reviewers check.
- [Launch stages and KPIs](https://docs.zokogames.com/getting-started/launch-stages.md): The stages a game moves through from draft to full launch, what each stage measures and the numbers reviewers look at.
- [Updating a live game](https://docs.zokogames.com/getting-started/updating-a-game.md): How to ship a new build, artwork or listing text to a game that is already live, and what is reviewed first.
- [Environments and query overrides](https://docs.zokogames.com/getting-started/environments.md): The three SDK environments, how the SDK picks one, and which URL parameters change behaviour.
- [Glossary](https://docs.zokogames.com/getting-started/glossary.md): Plain-language meanings of the words used across the ZokoGames documentation, each linked to the page that explains it.
- [For AI coding agents](https://docs.zokogames.com/getting-started/for-ai-agents.md): What to fetch (llms.txt, llms-full.txt, page.md), the minimal integration checklist with a check for every step, the validation rules a build must meet, and what still needs a human.

## Requirements

- [Requirements overview](https://docs.zokogames.com/requirements/overview.md): A matrix of what basic launch and full launch each require, with links to the detailed rules.
- [Requirements checklist](https://docs.zokogames.com/requirements/checklist.md): One page with everything the upload validator and reviewers check, to tick through before you submit.
- [Limits at a glance](https://docs.zokogames.com/requirements/limits.md): Every number a studio can hit in one place - how big the build zip can be, first-download budget, cover and video sizes, tag count, text lengths and SDK limits - each with its unit and the page that explains it.
- [Technical requirements](https://docs.zokogames.com/requirements/technical.md): Build sizes, file limits, supported browsers, mobile handling, audio on iOS, scroll and key handling, relative paths and sitelock.
- [Gameplay requirements](https://docs.zokogames.com/requirements/gameplay.md): Window sizes your game must be legible at, language, age rating and cross-promotion rules.
- [Advertisement rules](https://docs.zokogames.com/requirements/advertisements.md): Where and how midgame ads, rewarded ads and banners may be used, and how to treat players with adblockers.
- [Quality guidelines](https://docs.zokogames.com/requirements/quality.md): What reviewers check beyond the technical rules, and the usual reasons a game is rejected.
- [Account integration scenarios](https://docs.zokogames.com/requirements/accounts.md): Four ways a game can handle player identity, from no accounts at all to full account linking with your own backend, and how to save progress.
- [Multiplayer](https://docs.zokogames.com/requirements/multiplayer.md): Requirements for multiplayer games on ZokoGames: rooms, invite links, instant multiplayer, chat moderation, lobby sizes and server hosting.
- [Game covers and preview videos](https://docs.zokogames.com/requirements/covers.md): Image and video specifications for game covers and preview clips, composition tips, how artwork changes are reviewed and what gets rejected.
- [Embedding and sitelock policy](https://docs.zokogames.com/requirements/embedding.md): How the portal frames your game, whether partner sites may embed it, which origin it runs on, what the sandbox allows and how to lock a build safely.
- [Build validation reference](https://docs.zokogames.com/requirements/build-validation.md): Every limit the upload validator enforces and every finding code in the build report, with what each means and how to fix it.
- [Text formatting](https://docs.zokogames.com/requirements/text-formatting.md): Which Markdown formatting each text field supports, how links are treated, and what is removed when you save.

## SDK reference

- [Introduction, init and errors](https://docs.zokogames.com/sdk/introduction.md): Load the SDK, initialise it, understand the module layout and handle the error objects every call can return.
- [Video ads](https://docs.zokogames.com/sdk/ads.md): Request midgame and rewarded video ads with the SDK, handle lifecycle callbacks and error codes, respect the cooldown and detect adblockers.
- [Banners](https://docs.zokogames.com/sdk/banners.md): Place static and responsive banners in your own HTML containers, with the sizes, refresh limits and error codes.
- [Game module](https://docs.zokogames.com/sdk/game.md): Gameplay events, loading signals, happy moments, completion, context, portal settings, rooms and invite links.
- [User module](https://docs.zokogames.com/sdk/user.md): Identify players, read system info, list friends, verify tokens on your server, prompt sign-in and link accounts.
- [Data (cloud save)](https://docs.zokogames.com/sdk/data.md): A localStorage-shaped cloud save for guests and signed-in players, with a 1 MiB limit and background syncing.
- [Leaderboards](https://docs.zokogames.com/sdk/leaderboards.md): Weekly leaderboards, how scores are submitted from the client and from your server, and how seasons and trophies work.
- [Analytics](https://docs.zokogames.com/sdk/analytics.md): What the SDK analytics module records today, how purchase events are reported, what happens in local mode and offline, and using your own analytics.
- [In-game purchases](https://docs.zokogames.com/sdk/purchases.md): Sell consumable and permanent items with the store module, test them with sandbox payments and verify purchases on your server.
- [Versioning and migration notes](https://docs.zokogames.com/sdk/versioning.md): How SDK versions are numbered, what stays compatible inside v1 and how to move between releases.
- [SDK playground](https://docs.zokogames.com/sdk/playground.md): Call the SDK in local mode from your browser and watch every request, result and error in a live event log.
- [Achievements](https://docs.zokogames.com/sdk/achievements.md): Define achievements in the console, unlock them from your game with SDK.achievements, and show players their progress.

## Engines

- [Engines overview](https://docs.zokogames.com/engines/overview.md): Pick your engine, find its plugin folder and page, see how mature each wrapper is, and learn what every web export must get right on ZokoGames.
- [Phaser](https://docs.zokogames.com/engines/phaser.md): Use the ZokoGames Phaser plugin or the JavaScript SDK in a Phaser game, with ad pausing, banners, saves, leaderboards and local testing.
- [Plain HTML5, Three.js and PixiJS](https://docs.zokogames.com/engines/html5-libraries.md): Integrate the SDK into a hand-written game or a rendering library such as Three.js or PixiJS, with pause, mute, save, leaderboard and resize wiring.
- [Unity](https://docs.zokogames.com/engines/unity.md): Install the ZokoGames Unity package, use the ZokoSDK facade, set WebGL export options the portal serves correctly, and test with the editor simulator.
- [Godot](https://docs.zokogames.com/engines/godot.md): Use ZokoGames from Godot 4 Web exports with the zokogames addon, its autoload, signals and callback or await style GDScript API.
- [Construct 3](https://docs.zokogames.com/engines/construct-3.md): Use the ZokoGames addon in Construct 3 with tagged actions, conditions and expressions, with event sheet recipes for ads, saves and scores.
- [GameMaker](https://docs.zokogames.com/engines/gamemaker.md): Use ZokoGames from GameMaker HTML5 builds with the zoko_ functions and the Async - Social event, with a working controller object.
- [Cocos](https://docs.zokogames.com/engines/cocos.md): Use ZokoGames from Cocos Creator 3 web builds with the typed ZokoSDK module, a built-in simulator and node-based banners.
- [Defold](https://docs.zokogames.com/engines/defold.md): Use ZokoGames from Defold HTML5 builds with the zokogames Lua library and its small native extension.
- [Wonderland Engine](https://docs.zokogames.com/engines/wonderland.md): Use ZokoGames from Wonderland Engine 1.x web projects with the typed ZokoSDK client and the zoko-sdk component that pauses the scene and audio around ads.
- [PlayCanvas](https://docs.zokogames.com/engines/playcanvas.md): Use ZokoGames in a PlayCanvas 2.x game through the integration script or the JavaScript SDK, with ad pausing, loading reports, banners, saves and local testing.
- [GDevelop](https://docs.zokogames.com/engines/gdevelop.md): Use the ZokoGames extension in GDevelop 5 with tagged actions, conditions and expressions, automatic pause and mute during ads, and ready event recipes.

## Bring your game

- [Bring your game to ZokoGames](https://docs.zokogames.com/porting/overview.md): Move a web game that already runs on other web game portals to ZokoGames: the export settings, the platform calls to swap, size and mobile checks, and testing before upload.
- [Bring a Unity game](https://docs.zokogames.com/porting/unity.md): Port a Unity WebGL game from other web game portals: WebGL template and compression, replacing ad, save, score and purchase calls with ZokoSDK, size and iOS, and testing in the console preview.
- [Bring a Godot game](https://docs.zokogames.com/porting/godot.md): Port a Godot Web export from other web game portals: the custom HTML shell, threads off, replacing ad, save, score and purchase calls with the ZokoGames autoload, size tips and testing in the console preview.
- [Bring a Construct 3 game](https://docs.zokogames.com/porting/construct-3.md): Port a Construct 3 game from other web game portals: install the ZokoGames addon, swap the other portal's actions for ads, saves, scores and purchases, export settings, size tips and testing in the console preview.
- [Bring a GameMaker game](https://docs.zokogames.com/porting/gamemaker.md): Port a GameMaker HTML5 game from other web game portals: the ZokoGames extension and script tag, ad, save, score and purchase calls in the Async - Social event, export settings and testing.
- [Bring a Phaser or HTML5 game](https://docs.zokogames.com/porting/phaser-html5.md): Port a Phaser, plain JavaScript, Three.js or PixiJS game from other web game portals: the SDK script tag, renaming or shimming the calls for ads, saves, scores and purchases, and testing.
- [Bring a Defold game](https://docs.zokogames.com/porting/defold.md): Port a Defold HTML5 bundle from other web game portals: add the zokogames library and script tag, replace ad, save, score and purchase calls in Lua, bundle settings, size tips and testing in the console preview.
- [Bring a Cocos game](https://docs.zokogames.com/porting/cocos.md): Port a Cocos Creator 3 web build from other web game portals: the ZokoSDK module and build template snippet, replacing ad, save, score and purchase calls, build settings, size tips and testing in the console preview.

## Guides

- [Troubleshooting](https://docs.zokogames.com/guides/troubleshooting.md): Symptoms, error codes, causes and fixes for the SDK, ads, saves, multiplayer rooms, builds and uploads, review, webhooks, local mode and the Preview tool.
- [Getting to the first frame fast](https://docs.zokogames.com/guides/first-frame.md): Practical steps to cut load time so players reach gameplay before they give up: set a budget, split loading, cut bytes and waiting, and catch regressions.
- [Optimisation tips](https://docs.zokogames.com/guides/optimisation.md): Memory, CPU and rendering advice for web games across desktop, mobile and low-end Chromebooks.
- [Mouse, keyboard and touch control pitfalls](https://docs.zokogames.com/guides/input-controls.md): Common input bugs on the web and how to avoid them, including scrolling, focus, pointer lock and mobile detection.
- [Mobile, touch and orientation](https://docs.zokogames.com/guides/mobile.md): Build a game that is playable on phones and tablets in the portal frame, with touch controls, safe areas, orientation and memory limits.
- [Audio, pausing and ads](https://docs.zokogames.com/guides/audio-and-ads.md): The pause and mute contract between your game and the portal - mute setting, video ads, lost focus and the first gesture - with one small controller that keeps every case right.
- [Localisation guide](https://docs.zokogames.com/guides/localisation.md): Choose the player's language from the SDK, keep English as the fallback, and avoid the layout and font problems that translations cause.
- [Cloud saves in practice](https://docs.zokogames.com/guides/cloud-saves.md): Design your save data for the 1 MiB data module, guests who sign in mid-game and future game updates.
- [Leaderboards step by step](https://docs.zokogames.com/guides/leaderboard-setup.md): Turn on a weekly leaderboard, pick the right rules, and submit scores from the client or your server.
- [Player accounts and your backend](https://docs.zokogames.com/guides/player-accounts.md): Read the player's identity, verify it on your server, add sign-in on a button, and link existing game accounts.
- [Ad monetisation guide](https://docs.zokogames.com/guides/ad-monetisation.md): How to pace midgame ads, design rewarded ads and place banners so revenue and retention both grow.
- [Multiplayer and invites](https://docs.zokogames.com/guides/multiplayer-invites.md): Step by step integration of rooms, invite links, in-app invites and join events, with a test routine for two browser tabs.
- [Making a game playable offline](https://docs.zokogames.com/guides/offline-play.md): Opt in to Save for offline, keep the build within the limits, and design your game for play with no connection.
- [Basic launch metrics explained](https://docs.zokogames.com/guides/basic-launch-metrics.md): What ZokoGames measures during basic launch, what a good result looks like for each number, and practical ways to improve every metric.
- [Analytics and metrics reference](https://docs.zokogames.com/guides/analytics-metrics.md): Exact definitions of plays, playtime, ad impressions, click-through, fill rate, eCPM and retention, plus consent, how days are cut and refresh timing.
- [Webhooks](https://docs.zokogames.com/guides/webhooks.md): Receive signed HTTPS webhooks when a review finishes, a build goes live, feedback is answered, a payout is created or an experiment ends, and verify them.
- [Artwork experiments](https://docs.zokogames.com/guides/artwork-experiments.md): Run a controlled test that compares cover and video variants against your live artwork, read the results and apply the winning variant to your game.
- [Notifications for studios](https://docs.zokogames.com/guides/notifications.md): Which in-app, push and email notifications a studio receives, who gets them, how to tune them, and how they relate to webhooks.
- [Player features that affect your game](https://docs.zokogames.com/guides/player-features.md): Ad-free members, kids mode, device notices, the contact-the-developer inbox, the guide link and the moderated-chat and instant-join flags.
- [Migrating from another portal's SDK](https://docs.zokogames.com/guides/migrating.md): Map the calls of a typical portal SDK onto ZokoGames, with the optional compatibility shim for quick ports.
- [Monetisation by genre](https://docs.zokogames.com/guides/monetisation-by-genre.md): Where midgame ads, rewarded ads and banners fit in action, clicker, driving, io, idle, puzzle and word games.
- [Account linking step by step](https://docs.zokogames.com/guides/account-linking.md): Link a player's ZokoGames identity to the account your game already has, with a complete server-side token check in Node.js.
- [Statements, PDFs and sandbox payouts](https://docs.zokogames.com/guides/statements-and-pdf.md): What a monthly statement contains, when it is cut, how to download it as PDF or CSV, and how statements behave while payouts run on the sandbox provider.
- [Player feedback emails and dislike reasons](https://docs.zokogames.com/guides/feedback-emails.md): How player messages reach your studio by email, daily digest or one mail per message, what the thumbs-down reasons are, and how to read the breakdown and reply.
- [Developer API reference](https://docs.zokogames.com/guides/developer-api.md): Developer API reference. Create scoped studio tokens, read games, stats, builds, feedback, leaderboards and statements, and upload a build from CI.
- [Multiplayer rooms](https://docs.zokogames.com/guides/multiplayer-rooms.md): Build a two-player game on SDK.game.room: create or join a room, send messages, share host-written state, handle host changes and test with two tabs.
- [Kids mode and games made for children](https://docs.zokogames.com/guides/kids-mode.md): What the portal switches off for children, how your game detects kids mode through the SDK, the rules for made-for-children games and how to test it.
- [Launch checklist](https://docs.zokogames.com/guides/launch-checklist.md): One ordered checklist from a new studio to a live game, mirroring the portal readiness check, the build validator and the reviewer QA list.
- [Promoting your game](https://docs.zokogames.com/guides/promoting-your-game.md): What the console's Promote tab does, which games can be promoted, how a sponsored campaign is booked, reviewed, paid, stopped and refunded, and how to read its report.
- [Team, roles and studios](https://docs.zokogames.com/guides/team-and-roles.md): Roles in a studio, inviting and removing people, ownership transfer, working in several studios, finding games in a large catalogue and moving a game.

## Business

- [Revenue share overview](https://docs.zokogames.com/business/revenue-share.md): How ZokoGames revenue sharing works as implemented, what earns revenue, and where to find your exact terms.
- [Payouts](https://docs.zokogames.com/business/payouts.md): How and when your studio earnings are paid, what you must set up first, how statements and their states work, invoices, disputes and taxes.
- [Developer terms summary](https://docs.zokogames.com/business/developer-terms.md): A plain-language summary of what you agree to when you create a studio, and where the binding text lives.
- [Support and contact](https://docs.zokogames.com/business/support.md): How to get help from ZokoGames support, what to include in a request so it is answered quickly, and where to report security problems.
- [FAQ](https://docs.zokogames.com/business/faq.md): Answers to the questions developers ask most about submission, review, ads, saves, leaderboards and payouts.
- [Changelog](https://docs.zokogames.com/business/changelog.md): Version history of the ZokoGames SDK, with the notable changes to the developer documentation and tools listed release by release.
- [Licences](https://docs.zokogames.com/business/licences.md): The licence of the ZokoGames SDK, engine plugins and starter kits, what it allows in your game, and where the portal lists the open-source software it uses.
