Skip to content
New issue

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

probloms #4

Open
RaptorBlue0214 opened this issue Sep 20, 2023 · 0 comments
Open

probloms #4

RaptorBlue0214 opened this issue Sep 20, 2023 · 0 comments

Comments

@RaptorBlue0214
Copy link

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()

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')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant