Menu - Top - Home - Donate to Me

module:extras/createfloor

Back to documentation index.

module:extras/createfloor()

The extras/createfloor.js module. To import all symbols in this module, either of the following can be used:

import * from "extras/createfloor.js";
// -- or --
import * as CustomModuleName from "extras/createfloor.js";

Methods

(static) module:extras/createfloor.createFloor(xStart, yStart, width, height, tileSize, [z])

Generates a mesh buffer of a tiled floor. Texture coordinates of each tile will range from [0,1] across the width and height of that tile. Thus, any texture used to render the mesh buffer should entirely be of a square tile.

Parameters

Return Value

The resulting mesh buffer. (Type: MeshBuffer)

Back to documentation index.