Menu - Top - Home - Donate to Me


Back to documentation index.


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";


(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.


Return Value

The resulting mesh buffer. (Type: MeshBuffer)

Back to documentation index.