I am drawing objects into a canvas like this,
ctx.fillStyle = "black";
ctx.fillRect(player.x, player.y, player.width, player.height);
After I've drawn lots of them, I would like to deteremine whether something was drawn at a particular coordinates in the canvas , how can I accomplish this ?