LevelOpts
Defined in: packages/threeplay/src/plugins/level/types.ts:6
Options of addLevel().
Properties
Section titled “Properties”origin?
Section titled “origin?”
optionalorigin?:Vector3| {x:number;y:number;z:number; }
Defined in: packages/threeplay/src/plugins/level/types.ts:10
World position of tile (0, 0)’s center (default: the map is centered on the origin).
tiles:
Record<string, (p,col,row) =>CompList>
Defined in: packages/threeplay/src/plugins/level/types.ts:17
What each character builds. The function gets the tile’s world position
(center of the tile, y = origin.y) and grid coordinates; return the
components of the tile object. pos() is added for you if missing.
Characters with no entry (and spaces) are empty.
tileSize?
Section titled “tileSize?”
optionaltileSize?:number
Defined in: packages/threeplay/src/plugins/level/types.ts:8
Size of a tile on X and Z (default 1).