We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
my main code was this:
import pygame, sys
pygame.init() screen = pygame.display.set_mode((screen_width,screen_height)) clock = pygame.time.Clock()
while True: for event in pygame.event.get(): if event.type == pygame.QUIT: pygame.quit() sys.exit()
screen.fill('black') pygame.display.update() clock.tick(60)
as you said but it said screen_width,screen_height not defind and it had erros with: sys.exit() and
screen.fill('black')
The text was updated successfully, but these errors were encountered:
No branches or pull requests
my main code was this:
import pygame, sys
Pygame setup
pygame.init()
screen = pygame.display.set_mode((screen_width,screen_height))
clock = pygame.time.Clock()
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
sys.exit()
as you said but it said screen_width,screen_height not defind and it had erros with: sys.exit() and
The text was updated successfully, but these errors were encountered: