ScenePlayers
Since 0.7
Local players: how many seats, how devices take them, and who the keyboard belongs to.
Absent: one player who hears every device.
Fields
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
max | integer | yes | Most players seated at once, 1 to 4. | ||
join | PlayersJoin | no | press, auto, script | How devices take seats. "press" (default): a free pad presses South or Start, the keyboard Return or Space, a keyboard half any key its half binds. "auto": every pad that connects joins. "script": only ctx.players.join seats anyone. | |
keyboard | PlayersKeyboard | no | player, split, none | "player" (default): the keyboard and mouse are one player's, player 1's at load. "split": two players, "left" (player 1 at load) and "right"; a half reads the context NAME/left or NAME/right in place of NAME where the map has one. "none": the keyboard seats no one, and the first pad to join is player 1. |