setPlayfield(properties) , method of player

Change the playfield dimensions of a player.

name type description
left num left, x-coordinate of the rectangle left side
top num top, y-coordinate of the rectangle top side
right num right, x-coordinate of the rectangle right side
bottom num bottom ,y-coordinate of the rectangle bottom side
// Set the playfield of player 1 to the right half of the world.
// Note: W and H are initialized with the scene dimensions. See scene properties.
	left: W/2,
	top: 0,
	right: W,
	bottom: H

See all methods of the api.