Skip to content
STAIGEGAMES
Help center
Building · 2 min

Optional: talk to STAIGE from your game

Tell STAIGE when a run ends so players get a (polite) rating prompt.

Your game runs in a sandboxed iframe. You can post a message to the STAIGE player when a run ends — we'll show a small, one-time rating card.

// when the player dies / finishes a level
window.parent.postMessage({ type: "staige:gameover", score: 1234 }, "*");

Games are served from a separate origin (play.games.staige.world) — cookies and localStorage work, but you can't access STAIGE accounts from inside the game.