SDL λΌμ΄λΈλ¬λ¦¬λ₯Ό μ΄μ©ν΄μ λ§λ κ²μκ°λ°μ© Python λͺ¨λ.
μ¬μ©νκΈ° μ λ§ μ½λ€. Python Interpreter μμ νμ€ νμ€ μ λ ₯νλ©΄μ 곡λΆν μλ μλ€.
μ¬μ©νκΈ° μ λ§ μ½λ€. Python Interpreter μμ νμ€ νμ€ μ λ ₯νλ©΄μ 곡λΆν μλ μλ€.
- PyGame ννμ΄μ§: http://pygame.org
pygame.Surface λ₯Ό μμλ°μ μ ν΄λμ€λ₯Ό λ§λ€ μκ° μλ€. μ΄μνκ²λ λ€μ μ½λκ° Attribute μλ¬κ° λλ€. μ μ ν μ μ½λΆλΆμ λν΄μ μκ°μ ν΄μΌ ν λ―.
~cpp
class Background(pygame.Surface):
def __init__(self, aSize):
pygame.Surface.__init__(self, aSize)
def clearSurface(self):
self.fill((0,0,0))
def createBlackScreen(aSize):
back = Background(aSize)
back.clearSurface() <-- μ¬κΈ°μ Attribute μλ¬
return back









