(coord)
| 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; |
nothing calls this directly
no outgoing calls
no test coverage detected