Using python, if I wanted to make two shapes interact with each other, how would I do that?
I am trying to make a simple game from scratch using if/elif/else.
What I have done so far is created a mouse that will move randomly across the panel to try to get to the other side. On the opposite side of the screen, I have created a box to try and block the mouse from reaching the other side.
What I am trying to do is when the mouse runs into the box, it will deflect and head in a random opposite direction. I can't figure out how to get the mouse to deflect and run away. The mouse always runs right through my box.