강의

멘토링

커뮤니티

Inflearn Community Q&A

uki0202265693's profile image
uki0202265693

asked

Free Python Lecture (Usage Part 1) - Making a nostalgic arcade game (3 hours)

Environment Settings & Frame

pygame.quit() 작성하지 않아도 되지 않나요?

Written on

·

355

0

# 이벤트 루프
running = True # 게임이 진행중?
while running:
    for event in pygame.event.get(): # 이벤트 체크
        if event.type == pygame.QUIT: # 종료버튼 QUIT 은 대문자
            running = False  

# pygame 종료
pygame.quit()

에서

" pygame.quit() "

이 부분을 작성하지 않아도, 이벤트가 없으면 자동으로 꺼지는게
기본 값으로 보이는데,


pygame.quit() 이부분을 작성하지 않아도, 종료 되지 않나요??
작성해야만 하는 이유가 있을까요?
pythonpygameGUI

Answer

This question is waiting for answers
Be the first to answer!
uki0202265693's profile image
uki0202265693

asked

Ask a question