作る

FunnableConfig

Runtime config injected by the Funnable shell as `window.__FUNNABLE__`. Only advanced developers need to provide overrides manually.

FunnableConfig

Runtime config injected by the Funnable shell as window.__FUNNABLE__. Only advanced developers need to provide overrides manually.

Examples

const sandbox = Funnable.init({
  gameId: "local-dev",
  developer: "Arcade Forge",
  apiBase: "http://localhost:8787",
  wsBase: "ws://localhost:8787",
});

Properties

gameId

gameId: string

Unique id for the game assigned by the Funnable platform.

isEmbed

isEmbed: boolean

True when the game is running inside the hosted iframe embed.

campaignId?

campaignId?: string | undefined

Optional marketing campaign identifier (utm-style).

refId?

refId?: string | undefined

Optional referral identifier for creator programs.

developer

developer: string

Display name for the studio/developer.

branding

branding: GameBranding | null

Branding hints (custom colors, etc.) supplied by the host shell.

adConfig

adConfig: AdConfig | null

Monetization hints for rendering rewarded placements.

apiBase

apiBase: string

Base REST URL used for ranking/lobby/analytics calls.

wsBase

wsBase: string

Base WebSocket URL used for chat and live updates.