'Moves invincible star along x, y axes and checks for collisions'

def adjust_star_position(self, star):

    if (star.state == c.BOUNCE):
        star.rect.x += star.x_vel
        self.check_mushroom_x_collisions(star)
        star.rect.y += star.y_vel
        self.check_star_y_collisions(star)
        star.y_vel += star.gravity
        self.delete_if_off_screen(star)
