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

Function mouseMoveHandler

assets/js/breakout.js:62–67  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

60}
61
62function mouseMoveHandler(e) {
63var relativeX = e.clientX - canvas.offsetLeft;
64if(relativeX > 0 && relativeX < canvas.width) {
65 paddleX = relativeX - paddleWidth/2;
66}
67}
68function collisionDetection() {
69for(var c=0; c<brickColumnCount; c++) {
70 for(var r=0; r<brickRowCount; r++) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected