예제 #1
0
파일: moveable.py 프로젝트: JackMc/Plasmas
    def __init__(self, gfx, pos):
        self.dx = 0
        self.dy = 0

        self.pos = pos
        self.spawn = pos[:]

        self.gfx = gfx

        KeyboardListener.__init__(self, [K_w, K_a, K_s, K_d])
예제 #2
0
 def __init__(self):
     KeyboardListener.__init__(self, [K_ESCAPE])