# Курсор
cursor_img = pygame.transform.scale(pygame.image.load("sprites/cursor.png"), (32, 32))
pygame.mouse.set_visible(False)
cursor_img_rect = cursor_img.get_rect()
run = True
while run:
for event in pygame.event.get():
if event.type == pygame.QUIT:
run = False
if pygame.mouse.get_focused():
cursor_img_rect.center = pygame.mouse.get_pos()
screen.blit(cursor_img, cursor_img_rect)
pygame.display.update()
pygame.quit()
screen.fill('black')