I'm coding in C++.
I'm just wondering if there is anyway of detecting whether the cursor is within a certain randomly determined part of the screen?
For example, with the game "Squares". Is it possible to code the ending of the game when your square at the cursor enters the boundaries of another randomly moving square?
Thank you for your help