Pygame action when mouse 'click' on .rect?

后端 未结 2 906
春和景丽
春和景丽 2021-01-06 14:06

I have been writing a test function to learn how a mouse \'click\' action on a pygame.rect will result in a reponse.

So far:

def test():
    pygame.i         


        
2条回答
  •  抹茶落季
    2021-01-06 14:27

    I think rect method call collidepoint, not collide*r*point. Here is the link to documentation!

提交回复
热议问题