How do I check if a the mouse has touched a Javascript object that is randomly generated?
I am attempting to create a game where objects (currently circles) are randomly generated within a canvas, and the objects and their positions (plus other info) are stored within an array. The objects are randomly generated and what I want…