How to get object(or it's index in NumPy array) from mouse coordinates using collide rect or something else? (Pygame 2D)

后端 未结 0 1777
庸人自扰
庸人自扰 2021-01-04 00:07

Basically, I have a NumPy array of rectangles that store their colour and position. I want to be able to compare my mouse position and clicked on the rectangle\'s position a

相关标签:
回答
  • 消灭零回复
提交回复
热议问题