재생1 파이썬 pygame 배경 사운드 이펙트 사운드 재생 예제 코드 (mixer, music, load, play) from tkinter import *import pygameclass GameSound: def __init__(self): window = Tk() # 윈도우 생성 window.title("게임사운드") # 제목을 설정 window.geometry("640x480") # 윈도우 크기 설정 window.resizable(0,0) self.canvas = Canvas(window, bg = "white") self.canvas.pack(expand=True,fill=BOTH) window.bind("",self.keyPressHandler) window.bind("",self.keyReleaseHandler) #pygame 에서 music vs sound # mus.. 2024. 5. 29. 이전 1 다음