def __init__(self, x, y): Vex.__init__(self, x, y, pygame.Color(255, 0, 255), [Vector2(20, 30), Vector2(30, 0), Vector2(10, 10), Vector2(0, -10), Vector2(-10, 10), Vector2(-30, 0), Vector2(-20, 30), Vector2(-10, 20), Vector2(-4, 24), Vector2(4, 24), Vector2(10, 20), Vector2(20, 30)], 2, 1, 1)
def __init__(self, x, y, colour, identity): points = [Vector2(-20, -20), Vector2(20, -20), Vector2(20, 20), Vector2(-15, 20), Vector2(-25, 25), Vector2(25, 25), Vector2(15, 20), Vector2(-20, 20), Vector2(-20, -20), Vector2(-15, -15), Vector2(15, -15), Vector2(15, 15), Vector2(-15, 15), Vector2(-15, -15)] Vex.__init__(self, x, y, colour, points, 2) self.send_mod = 240 self.send_count = randint(0, self.send_mod) self.send_next = False self.identity = identity self.captured = [] self.stolen = False self.nit_width = 20/len(self.identity)
def __init__(self, x, y, score): Vex.__init__(self, x, y, pygame.Color(0, 255, 0), [Vector2(10, 0), Vector2(0, 10), Vector2(-10, 0), Vector2(0, -10), Vector2(10, 0)], 2, 1, 1) self.score = score