im following a tutorial on how to make my sprite move while tweaking my code a bit i stumbled on this problem where when i run the code it just shows a black screen
this is my code :
import pygame as py
py.init()
#_______________window-zone___________
py.display.set_caption("To Nowhere")
screen = py.display.set_mode((970,490))
pygame_ico= py.image.load("D:/code storage/py/images/medium_rocket.png")
py.display.set_icon(pygame_ico)
clock = py.time.Clock()
#___________player-zone__________
player_img = py.image.load(r"D:/code storage/py/images/small_rocket.png")
fps = 60
x = 100
y = 100
velocity = 12
py.display.flip()
runing = True
while runing:
clock.tick(fps)
screen.fill((0, 79, 169))
screen.blit(player_img, (x, y))
#__________genarator_output_______
for event in py.event.get():
if event.type == py.QUIT:
runing = False
py.quit()
quit()
#___________player_inputs__________
key_pressed = py.key.get_pressed()
if key_pressed[py.K_LEFT]:
x -= 8
if key_pressed[py.K_RIGHT]:
x += 8
if key_pressed[py.K_UP]:
y -= 8
if key_pressed[py.K_DOWN]:
y += 8
py.display.update()
```



