text_rect = text.surface.get_rect() text_rect.midtop =(x,y) surf.blit(text_surface, text_rect). class Player(pygame.sprite.Sprite):
確定! 回上一頁