# Vortex Arcade integration for AI coding assistants Developer documentation: https://vortexgame.win/developer/docs/ Full Markdown guide with manifest and JavaScript examples: https://vortexgame.win/developer/docs/guide.md Developer registration: https://vortexgame.win/account/developer/ Game submissions: https://vortexgame.win/game/submit/ Category Markdown: - Getting started: https://vortexgame.win/developer/docs/getting-started/guide.md - Wallet and purchases: https://vortexgame.win/developer/docs/wallet/guide.md - Cloud saves: https://vortexgame.win/developer/docs/cloud-saves/guide.md - Matchmaking: https://vortexgame.win/developer/docs/matchmaking/guide.md - WebRTC and TURN: https://vortexgame.win/developer/docs/turn/guide.md - Publishing: https://vortexgame.win/developer/docs/publishing/guide.md ## Release and browser environment - Ship a static HTML export, separate cover art, and arcade.game.json in the same committed revision. Keep the game slug stable across updates. Make startup work with local assets and without a signed-in account or a network dependency. - Arcade injects window.VortexCredits and window.VortexMatchmaking. Test sign-in-dependent features inside /play//. Keep the menu usable when the SDK is missing. - Use the injected SDK for Arcade account services. The player supplies the verified account and game context. Keep payment and service secrets on the server. ## Wallet and cloud saves - Register prices as integer Vortex Credits in creditProducts. Read current prices and owned quantities with VortexCredits.store(). Use purchase(productId, requestId) with a new UUID per purchase and the same UUID after an uncertain result. Use the returned ownership to fulfil the purchase. - buyCredits(packId, requestId) asks Arcade to open checkout. Refresh wallet() on return to check the balance. See Arcade checkout for live pack pricing. - gameState.load(account) and gameState.save({ account, balance, data, revision }) use a per-game, per-account snapshot. Use identity().userId as the account value from the same launched game. Save data must be a JSON object of at most 32 KiB. A game-state conflict returns the current snapshot as error.state. Check the active account and reconcile progress before retrying. - Treat game-state balance as gameplay currency, separate from shared Vortex Credits. Keep paid entitlements in Arcade ownership and authoritative competitive outcomes on a game backend. ## Matchmaking and TURN - Generate a ticket with VortexMatchmaking.createTicket(). Join with { ticket, queue, version, playerCount, code, metadata }. The game, queue, version, player count, and optional invite code determine compatibility. - Follow waiting, matched, and closed states. Poll after pollAfterMs while waiting. An inactive search expires after about 30 seconds. A matched ticket lasts up to two minutes for the connection handoff. On an uncertain join, retry with the same ticket. On 409, error.ticket can identify another active search. - Your game owns signaling and the game transport. Treat roster metadata as player-provided data. Use an active ticket to call turn(ticket) and give its iceServers to RTCPeerConnection before ICE gathering. Each player requests their own credentials and keeps them out of room data, saves, and logs. Check expiresAt before reuse. - Use connection(ticket, 'connected' or 'failed') for optional reporting. Use leave(ticket) when the player cancels or the transport handoff finishes. Use a fresh UUID for another search. ## Verify - Check guest launch, signed-in flows from the player, purchase retry, cloud-save conflict and account switching, cancellation, and a two-player relay-only WebRTC test. - Follow the full guide for API contracts, status codes, publishing requirements, and the complete release checklist.