Vela

Game developers

Fullscreen, pause and return

The game owns its playfield while the player uses it. The browser and operating system own trusted navigation, fullscreen permission and the route Home. Keep an in-page fullscreen button and a complete windowed layout. The round should survive a browser declining the fullscreen request. Try Night Circuit

Enter fullscreen from a deliberate action

Request fullscreen on the container that includes the HUD, pause controls and exit route. Initiate the request inside the button event. Observe the actual fullscreen element after a change because Escape, browser controls or host policy can end fullscreen at any time. The promise can reject. Fullscreen standard

async function toggleFullscreen(stage, status) {
  try {
    if (document.fullscreenElement) await document.exitFullscreen();
    else if (document.fullscreenEnabled) await stage.requestFullscreen();
    else status.textContent = "Continue playing in this window.";
  } catch {
    status.textContent = "Fullscreen is unavailable. Your round is still here.";
  }
}

Keep instructional text away from screen edges. Make the smallest-screen layout usable in the ordinary browser viewport, then let the same controls spread out at 1080p and 4K. A 4K capture proves the geometry at that resolution. It says little about frame pacing on a television SoC.

Give interrupted players a safe return

On a visibility change, pause movement, stop unnecessary animation or audio work, and forget the current held inputs. Keep the current round available. After the page returns, wait for an explicit Resume and focus the last active game object. Hidden pages can be throttled or discarded, so an in-memory round is only guaranteed while the document remains alive. HTML page visibility

Night Circuit deliberately keeps each round only in the open page. Its pause screen says that refreshing resets the board. Lantern Lake likewise stores its current crossing in page memory. A title promising durable progress needs versioned checkpoints, a bounded save size and an explicit response to an unavailable storage area.

Check what the player can recover from

  • Pause halfway through a move and open another tab. Coming back should show the paused state.
  • Leave fullscreen with browser controls. The selected tile and the visible pause control should still make sense.
  • Finish the round with sound muted and reduced motion enabled. Make completion visible in text and on the board.
  • On actual target hardware, record the browser build, resolution, device and connected controller before reporting input latency or sustained frame rate.