pygame.Rect

https://www.pygame.org/docs/ref/rect.html#pygame.Rect

https://blog.csdn.net/YZXnuaa/article/details/79011795

pygame.Rect.clip:

crops a rectangle inside another

Returns a new rectangle that is cropped to be completely inside the argument Rect. If the two rectangles do not overlap to begin with, a Rect with 0 size is returned.

https://www.pygame.org/docs/ref/rect.html#pygame.Rect.clip

posted @ 2018-06-11 20:45  BreakofDawn  阅读(154)  评论(0编辑  收藏  举报