public void InitLevel2() { clearMe(); Human human1 = new Human("person", new Vector2(300, 820)); background.AddChild(human1); humans.Add(human1); Human human2 = new Human("person_boat", LevelActorPaths.GetLevel2_Humans()[0]); foreground.AddChild(human2); humans.Add(human2); List <List <Step> > allPaths = LevelActorPaths.GetLevel2_Enemies(); Enemy boat1 = new Enemy("boat2", allPaths[0]); midground.AddChild(boat1); enemies.Add(boat1); Enemy boat2 = new Enemy("boat2", allPaths[1]); background.AddChild(boat2); enemies.Add(boat2); Enemy boat3 = new Enemy("sub2", allPaths[2]); midground.AddChild(boat3); enemies.Add(boat3); }
public void InitLevel5() { clearMe(); List <List <Step> > allHumanPaths = LevelActorPaths.GetLevel5_Humans(); Human human1 = new Human("person", new Vector2(250, 815)); background.AddChild(human1); humans.Add(human1); Human human2 = new Human("person_boat", allHumanPaths[0]); foreground.AddChild(human2); humans.Add(human2); Human human3 = new Human("person_scuba", allHumanPaths[1]); foreground.AddChild(human3); humans.Add(human3); Human human4 = new Human("person_scuba", allHumanPaths[2]); foreground.AddChild(human4); humans.Add(human4); Human human5 = new Human("person", new Vector2(400, 820)); background.AddChild(human5); humans.Add(human5); List <List <Step> > allEnemyPaths = LevelActorPaths.GetLevel5_Enemies(); Enemy boat1 = new Enemy("boat1", allEnemyPaths[0]); midground.AddChild(boat1); enemies.Add(boat1); Enemy boat2 = new Enemy("boat2", allEnemyPaths[1]); midground.AddChild(boat2); enemies.Add(boat2); Enemy boat3 = new Enemy("sub1", allEnemyPaths[2]); midground.AddChild(boat3); enemies.Add(boat3); Enemy boat4 = new Enemy("sub2", allEnemyPaths[3]); midground.AddChild(boat4); enemies.Add(boat4); Enemy boat5 = new Enemy("sub1", allEnemyPaths[4]); midground.AddChild(boat5); enemies.Add(boat5); }
public void InitLevel1() { clearMe(); Human human1 = new Human("person_boat", LevelActorPaths.GetLevel1_Humans()[0]); foreground.AddChild(human1); humans.Add(human1); List <List <Step> > allPaths = LevelActorPaths.GetLevel1_Enemies(); Enemy boat1 = new Enemy("boat2", allPaths[0]); midground.AddChild(boat1); Enemy boat2 = new Enemy("boat1", allPaths[1]); midground.AddChild(boat2); enemies.Add(boat1); enemies.Add(boat2); }