1

i have no problem of syntax or any erorr its just a problems when i run the program

import pygame
pygame.init()
# generate window
pygame.display.set_caption("shooter Game")
pygame.display.set_mode((1080, 720))
running = True
while running:
  # if the player close the window
   for event in pygame.event.get():
      if event.type == pygame.QUIT:
        running = False
        pygame.quit()
        print("game closed")

sceenshot of the code and the of python that not stoping to jump

dani
  • 11
  • 2

1 Answers1

1

You don't update the display, which you have to do with pygame.display.update() You can add it right after pygame.display.set_mode((1080, 720)) Try like this and tell me if it works :)

bappi
  • 137
  • 9