MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / drawSpriteCircle

Function drawSpriteCircle

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

Source from the content-addressed store, hash-verified

344 };
345
346 function drawSpriteCircle(coord) {
347 ctx.beginPath();
348 ctx.fillStyle = "yellow";
349 ctx.arc(
350 (coord.x + 1) * cellSize - halfCellSize,
351 (coord.y + 1) * cellSize - halfCellSize,
352 halfCellSize - 2,
353 0,
354 2 * Math.PI
355 );
356 ctx.fill();
357 if (coord.x === maze.endCoord().x && coord.y === maze.endCoord().y) {
358 onComplete(moves);
359 player.unbindKeyDown();
360 }
361 }
362
363 function drawSpriteImg(coord) {
364 var offsetLeft = cellSize / 50;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected