MCPcopy
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / removeSprite

Function removeSprite

assets/js/maze.js:383–392  ·  view source on GitHub ↗
(coord)

Source from the content-addressed store, hash-verified

381 }
382
383 function removeSprite(coord) {
384 var offsetLeft = cellSize / 50;
385 var offsetRight = cellSize / 25;
386 ctx.clearRect(
387 coord.x * cellSize + offsetLeft,
388 coord.y * cellSize + offsetLeft,
389 cellSize - offsetRight,
390 cellSize - offsetRight
391 );
392 }
393
394 function check(e) {
395 var cell = map[cellCoords.x][cellCoords.y];

Callers 1

checkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected