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])
def __init__(self): KeyboardListener.__init__(self, [K_ESCAPE])
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])
def __init__(self): KeyboardListener.__init__(self, [K_ESCAPE])