def __init__(self, position, players): Controllable.__init__(self, 2, position, 0) Collideable.__init__(self, Settings.ENEMY_SIZE) Health.__init__(self, Settings.ENEMY_HEALTH) self.players = players self.min_distance = Settings.ENEMY_SIZE + Settings.ENEMY_MIN_DISTANCE
def __init__(self, position): Controllable.__init__(self, 0, position, 0) Collideable.__init__(self, Settings.PLAYER_SIZE) Health.__init__(self, Settings.PLAYER_HEALTH) self.score = 0 self.ray_data = []