Vortex Arcade

Checking Arcade access

Quick launch

Getting started

View Markdown

Prepare a web release

Your repository needs a static browser build that works from a subdirectory URL. Keep game scripts and their imports local and relative. Put executable script tags directly in the document head or body, and use literal relative URLs for dynamic imports and classic Web Workers. Published exports should use explicit script files instead of import maps or module preload tags. Modules that use import.meta.url must be at the release root so their asset URLs survive bundling. The import reports the file and reason if the compiler cannot preserve the export. Provide a cover image in a separate public media folder and keep private credentials on the server.

Commit the browser export, public media, and manifest together. This example uses a ready screen, one paid cosmetic, and a cover kept outside the build directory. Manifest template

arcade.game.json
web-export/
  index.html
  game.js
  style.css
arcade-art/
  cover.webp
{
  "slug": "example-game",
  "title": "Example Game",
  "summary": "Race the clock and beat your best run.",
  "genres": ["Arcade"],
  "tags": ["Single player"],
  "input": "Keyboard and touch",
  "releaseDate": "2026-11-29",
  "buildDir": "web-export",
  "entry": "index.html",
  "mediaDir": "arcade-art",
  "cover": "cover.webp",
  "coverAlt": "A rider approaching a brightly lit finish line",
  "controls": [["Steer", "Arrow keys"]],
  "touchControls": [["Steer", "On-screen arrows"]],
  "launchTest": { "ready": "#menu", "start": "#play", "started": "#game-hud" },
  "creditProducts": [
    { "id": "blue-trail", "name": "Blue Trail", "description": "A blue flight trail", "credits": 250 }
  ]
}
Field What Arcade expects
slug A stable unique ID in lowercase letters and digits with optional hyphen separators. Keep it across releases so the listing, purchases, and cloud saves stay under the same game.
title, summary, genres, tags, input, releaseDate, coverAlt Catalog copy and metadata. Supply at least one genre and use YYYY-MM-DD for the release date. List the inputs the build actually supports.
buildDir, entry The committed static export directory and its HTML entry path, relative to that directory.
mediaDir, cover A separate committed directory and a cover path relative to it. Keep the build and media directories disjoint.
controls, touchControls, modes, adapterPath Optional control labels, launch modes, and a custom adapter path when required. Standard games can use the injected SDK without an adapter.
launchTest, creditProducts Optional guest smoke test selectors and the reviewed game store. Cloud saves require no additional manifest field.

Use relative paths such as ./game.js and ./assets/cover.webp inside the build so it runs under /releases/<slug>/. Commit runtime dependencies and cover artwork as ordinary files. Test with external networking blocked so a CDN, analytics script, remote font, or API outage cannot stop the game from reaching its menu. Keep startup lightweight, make touch controls fit the embedded viewport, and start audio on a player action. Packaged Deadshift manifest with products

Run npm run scan:game -- <release-directory> from the Arcade project root to scan an exported game. Include the optional launch adapter when scanning a staged import. The JSON report gives the rule, file and severity. The import workflow scans the pinned source and runs Chromium with guest and synthetic account profiles in a container with networking disabled. It records blocking findings in a draft review PR and links to the report from the submission. Three sensitive findings, counted once per rule per file, pause the import until an Arcade admin or owner approves that commit. The browser check covers startup and the declared launch interaction.

Arcade publishes compiled game code and the artwork declared in the listing. Keep private keys, authoring files and original project archives out of the release. A player can still save any code or assets delivered to their browser. Keep secrets and authoritative wallet and account logic on the server.

After both checks pass, admins and owners can play the scanned build in the submission screen when the release did not need elevated approval. The preview runs as a guest in a separate browser sandbox with a ten-minute link.

Integrate the Arcade SDK

The release build injects window.VortexCredits before your entry page's scripts. In the production player, an imported game runs in a separate-origin iframe. The SDK asks the Arcade page to perform account operations using the player's Arcade session and the launched game's slug. Launch from /play/<slug>/ to test signed-in features. The raw /releases/ URL for an imported game can serve guest play. A standalone game export may have no SDK at all.

SDK call Result
identity() { signedIn: false } for a guest. Signed-in players get { signedIn: true, userId, username }. Treat userId as opaque and scoped to the game in the imported player. Use username for display.
wallet() { signedIn, balance, checkoutEnabled } in the imported player. balance is shared Vortex Credits.
store() { game, balance, products, checkoutEnabled }. Each product has id, name, description, credits, repeatable, and owned with its purchased quantity. Requires sign-in.
purchase(productId, requestId?) { game, product, balance, owned, checkoutEnabled }. Here product is the purchased ID and owned maps product IDs to purchased quantities. Requires sign-in.
buyCredits(packId, requestId?) Requests Arcade's top-level Stripe Checkout. Use a fresh wallet read on return to confirm the balance.
gameState.load(account?) The signed-in player's current { game, balance, data, revision } snapshot. Pass the game-account ID when syncing queued changes.
gameState.save({ balance, data, revision, account? }) Replaces the signed-in player's snapshot at the supplied revision and returns the saved snapshot with its new revision.

Render the menu before waiting on the SDK. Call identity() or wallet() to decide which account controls to show. Offer a guest route when supported, and direct guests to the sign-in control in the Arcade player for account features. Treat identity lookup errors as temporary service failures and keep any cloud state untouched. Recheck identity on return to the game and before resuming pending writes. On account changes, clear the previous account's state, purchase UI, and pending operations from memory. Use the SDK instead of passing user IDs, session cookies, or payment credentials through your game.

async function loadArcadeShop() {
  const sdk = window.VortexCredits;
  if (!sdk) return { signedIn: false };

  const account = await sdk.identity();
  if (!account.signedIn) return { signedIn: false };

  const store = await sdk.store();
  return { ...store, signedIn: true };
}

Call this when opening the shop. Handle a rejected read by showing a retry message while leaving the main game playable.

Keyboard shortcuts

Search gamesCtrl / ⌘ + K
Open shortcuts?
Close a panelEsc