MCPcopy
hub / github.com/victorqribeiro/isocity / drawMap

Function drawMap

js/main.js:138–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136}
137
138const drawMap = () => {
139 bg.clearRect(-w, -h, w * 2, h * 2)
140 for (let i = 0; i < ntiles; i++) {
141 for (let j = 0; j < ntiles; j++) {
142 drawImageTile(bg, i, j, map[i][j][0], map[i][j][1])
143 }
144 }
145}
146
147const drawTile = (c, x, y, color) => {
148 c.save()

Callers 3

initFunction · 0.85
main.jsFile · 0.85
clickFunction · 0.85

Calls 1

drawImageTileFunction · 0.85

Tested by

no test coverage detected