#import
import pygame
import sys
pygame.init()
#player_img = pygame.image.load("basket-icon.png")
#bien
screen = pygame.display.set_mode((350,600))
clock = pygame.time.Clock()
running = True
#function
def draw():
screen.fill('lightblue')
#game
while True:
#close tab
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
sys.exit()
#update frame
clock.tick(60)
pygame.display.update()
screen is black
it doesn’t work even if i write as screen.fill((0,0,200))
do it wrong?
i want fix it pls help me
New contributor
Khang Phúc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.