[Python 3] 벽돌깨기 게임
·
코딩/개인 PT
# breakout_game_with_extra_life_and_particles.pyimport pygameimport sysimport random# 초기화pygame.init()# 색상 정의WHITE = (255, 255, 255)RED = (255, 0, 0)ORANGE = (255, 165, 0)YELLOW = (255, 255, 0)GREEN = (0, 255, 0)BLUE = (0, 0, 255)BLACK = (0, 0, 0)# 화면 설정SCREEN_WIDTH = 800SCREEN_HEIGHT = 600INFO_HEIGHT = 100 # 상단 정보 표시 공간 높이screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT))pygame.di..