Talos docs

ScenePlayers

Since 0.7

Local players: how many seats, how devices take them, and who the keyboard belongs to.

Plain text

Absent: one player who hears every device.

Fields

FieldTypeRequiredDefaultAllowed valuesDescription
maxintegeryesMost players seated at once, 1 to 4.
joinPlayersJoinnopress, auto, scriptHow 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.
keyboardPlayersKeyboardnoplayer, 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.

See also