1. pygame 선언 - import 2. pygame 초기화 - pygame.init() 3. 전역 변수 - size, screen(pygame.display.set_mode(size)), clock(pygame.time.Clock()) 4. pygame 메인 루프 (while) { } 아래는 pygame의 구조를 파악하는데 도움이 된 예제이다 # Import a library of functions called 'pygame' import pygame # Initialize the game engine pygame.init() # Define the colors we will use in RGB format BLACK= ( 0, 0, 0) WHITE= (255,255,255) BLUE = ( 0, ..