我是靠谱客的博主 追寻母鸡,这篇文章主要介绍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

最后

以上就是追寻母鸡最近收集整理的关于python pygame中 .get_rect()得到的矩形有哪些rect属性的全部内容,更多相关python内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(37)

评论列表共有 0 条评论

立即
投稿
返回
顶部