def __init__(self, Name, surf, alliance, pos, sensors = 50): if alliance == 0:GameObject.__init__(self, Name, surf, "swarmer-green.png", pos) elif alliance == 1: GameObject.__init__(self, Name, surf, "swarmer.png", pos) self.Sensors = sensors self.Alliance = alliance self.World = None self.makeTree() self.hitpoints = 100 self.speed = 5 self.atrange = Base.mean(self.Sprite.rect.size)+10 self.atcd = 10 self.cur_atcd = 0 self.atdmg = 10