Example #1
0
 public void Initialize()
 {
     map = new Map(Ressources.GetPerso(Perso.Choisi).path);
     hero = new Hero(Ressources.GetPerso(Perso.Choisi).heroAnime, new Vector2(450, 500), new Vector2(200, 0), 90, map);
     ennemi = new Ennemi(Ressources.GetPerso(Perso.Choisi).ennemiAnime, new Vector2(250, 500), hero, map);
     hero.ennemi = ennemi;
     camera = new Camera(map, hero, ennemi);
     ennemi.camera = this.camera;
     distance = hero.positionGlobale.X - ennemi.positionGlobale.X;
 }
Example #2
0
 public Camera(Map map, Hero hero, Ennemi ennemi)
 {
     this.map = map;
     this.hero = hero;
     this.ennemi = ennemi;
 }