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