Skip to content

KcdMp.env

What the page knows about where it runs.

A small read-only object: whether the game or a browser runs the page, the size of its screen, the player’s language and whether the game is in developer mode. Its members have their own pages.

KcdMp.env
const { screen, locale } = KcdMp.env;
document.title = locale + " " + screen.w + "x" + screen.h;

KcdMp.env.mock · KcdMp.env.screen · KcdMp.env.locale · the The page group of the index