MCPcopy Create free account
hub / github.com/melonjs/melonJS / readLayer

Function readLayer

packages/melonjs/src/level/tiled/TMXTileMap.js:28–38  ·  view source on GitHub ↗

* read the layer Data * @ignore

(map, data, z)

Source from the content-addressed store, hash-verified

26 * @ignore
27 */
28function readLayer(map, data, z) {
29 return new TMXLayer(
30 map,
31 data,
32 map.tilewidth,
33 map.tileheight,
34 map.orientation,
35 map.tilesets,
36 z,
37 );
38}
39
40/**
41 * read the Image Layer Data

Callers 1

readMapObjectsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected