当使用碰撞判断方法时,pygame就需要知道当前要检测的物体的位置,所以这个rect属性一定要设置 self.rect = self.image.get_rect() self.rect.topleft = position
確定! 回上一頁