GAME

Core game functions and logging.

Availability: Client & Server

Methods


GAME.changeGame

client server

Change to a different game map (client-only)

Signature: action(str, obj)

Parameters:

NameTypeDescription
namestrThe name or ID of the map to load
optionsobjOptional settings (private, host)
GAME.changeGame("name", {});

GAME.log

client server

Log messages to the game console

Signature: action(str)

Parameters:

NameTypeDescription
...argsstrThe ...args parameter
GAME.log("value");

GAME.setTitle

client

Set the browser tab title (client-only)

Signature: action(str)

Parameters:

NameTypeDescription
titlestrThe title to display
GAME.setTitle("value");