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

Function makeLayer

packages/melonjs/tests/tmxlayer-data.spec.js:64–68  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

62}
63
64function makeLayer(data) {
65 const map = new TMXTileMap("test", buildMapJSON(data));
66 const groups = map.getLayers();
67 return groups[0];
68}
69
70const ALL_ZERO_4x3 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
71

Callers 1

Calls 2

getLayersMethod · 0.95
buildMapJSONFunction · 0.85

Tested by

no test coverage detected