I'm making a simple scoring game. A dot moves around the screen and if you click the dot, you get a point.
The dot is circular and has a radius of 30. I want to make it so my game checks (using if) that MouseX and MouseY are within a radius of 30 of posX (x co-ord of dot at the time) and posY (y co-ord of dot at the time), and if so, score = score + 1
How do I do this in Processing?
Thanks
The dot is circular and has a radius of 30. I want to make it so my game checks (using if) that MouseX and MouseY are within a radius of 30 of posX (x co-ord of dot at the time) and posY (y co-ord of dot at the time), and if so, score = score + 1
How do I do this in Processing?
Thanks
1