ВОТ МОЙ КОД КАК ИСПРИВАТЬ ЭТУ ОШЫБКУ
import pygame
import settings
screen = pygame.display.set_mode((settings.widht,settings.height))
clock = pygame.time.Clock()
pygame.init()
running = True
while running:
clock.tick(60)
keys = pygame.key.get_pressed()
for event in pygame.event.get():
if event.type == pygame.quit():
running = False
if running:
pygame.display.update()
import pygame
import settings
screen = pygame.display.set_mode((settings.widht,settings.height))
clock = pygame.time.Clock()
pygame.init()
running = True
while running:
clock.tick(60)
keys = pygame.key.get_pressed()
for event in pygame.event.get():
if event.type == pygame.quit():
running = False
if running:
pygame.display.update()