8000 Updated base script to close pygame gracefully by lettuceDestroyer · Pull Request #4472 · pygame/pygame · GitHub
[go: up one dir, main page]

Skip to content

Conversation

lettuceDestroyer
Copy link

Updated the file base_script.py and base_script_example.py to close pygame gracefully.

running = True

while running:
while True:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like you forgot to change it back to running, since its set to true in line 8 its functionally equivalent but more understandable.

player_pos = pygame.Vector2(screen.get_width() / 2, screen.get_height() / 2)

while running:
while True:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should revert back to running

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

Successfully merging this pull request may close these issues.

2 participants
0