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:
| Name | Type | Description |
|---|---|---|
name | str | The name or ID of the map to load |
options | obj | Optional settings (private, host) |
GAME.changeGame("name", {});
GAME.log
client server
Log messages to the game console
Signature: action(str)
Parameters:
| Name | Type | Description |
|---|---|---|
...args | str | The ...args parameter |
GAME.log("value");
GAME.setTitle
client
Set the browser tab title (client-only)
Signature: action(str)
Parameters:
| Name | Type | Description |
|---|---|---|
title | str | The title to display |
GAME.setTitle("value");