Class: Autotiles

Autotiles

Autotiles grouped with the same textures

new Autotiles ()

Properties:
Name Type Argument Default Description
Autotiles.COUNT_LIST number <optional>
5 The tiles list sizes
Autotiles.LIST_A Array.<number> The tiles list A
Autotiles.LIST_B Array.<number> The tiles list B
Autotiles.LIST_C Array.<number> The tiles list C
Autotiles.LIST_D Array.<number> The tiles list D
texture THREE.Texture The autotiles texture
width number The texture total width
height number The texture total height
geometry THREE.Geometry The autotiles geometry
mesh THREE.Mesh The autotiles mesh
index number The faces index (count)

Methods

updateGeometry (position, autotile)

Update the geometry of the autotiles according to an autotile and its position
Name Type Description
position Array.<number> The json position
autotile Autotile The autotile to add to geometry

createMesh ()

Create a mesh with material and geometry