def spawn_enemy(self): char_selector = random.randint(0, 1) pos = [0, 0] if char_selector == 0: pos = [505, 500] elif char_selector == 1: pos = [790, 130] self.group_enemy.add( prefabs.Enemy(self, pos[0], pos[1], self.player, patrol_points[random.randint(0, 4)], 0))
def spawn_enemy(self): self.group_enemy.add( prefabs.Enemy(self, random.randint(0, self.WINDOW.get_size()[0]), self.WINDOW.get_size()[1], self.player))
def spawn_enemy(self): self.group_enemy.add( prefabs.Enemy(self, random.randint(0, self.WINDOW.get_size()[0]), self.WINDOW.get_size()[1], self.player, patrol_points[random.randint(0, 4)], 0))