python pygame中 .get_rect()得到的矩形有哪些rect属性

刚查了一下,Rect有以下属性,具体可以到pygame的文档上看:http://www.pygame.org/docs/ref/rect.html
x,y
top, left, bottom, right
topleft, bottomleft, topright, bottomright
midtop, midleft, midbottom, midright
center, centerx, centery
size, width, height
w,h

猜你喜欢

转载自blog.csdn.net/qq_20667737/article/details/85843033