public MoteurJeu(MoteurSysteme moteurSysteme, MoteurPhysique moteurPhysique) { statusJeu = Status.MenuAccueil; meteo = Meteo.Neige; menuManager = new MenuManager(this); this.moteurPhysique = moteurPhysique; this.moteurSysteme = moteurSysteme; evenementUtilisateur = new EvenementUtilisateur(); menuAccueuilFond = new Sprite(new Rectangle(0, 0, Constante.WindowWidth, Constante.WindowHeight)); carte = new Carte(moteurPhysique, moteurSysteme.carteArray, Vector2.Zero, 64, 64, 32, 16); carte.SetCarte(); personnage = new Personnage("Meta", new Vector2(3, 3), moteurPhysique.collisionCarte); monstres.Add(new Monstre(MonstreType.rondoudou, new Vector2(10, 8), moteurPhysique.collisionCarte)); //monstres.Add(new Monstre(MonstreType.brasegali, new Vector2(3, 5), moteurPhysique.collisionCarte)); hud = new HUD(personnage); animations.Add(new Animation()); combat = new Combat(moteurPhysique, evenementUtilisateur); }
protected override void Initialize() { moteurSysteme = new MoteurSysteme(); moteurPhysique = new MoteurPhysique(); moteurJeu = new MoteurJeu(moteurSysteme, moteurPhysique); moteurAudio = new MoteurAudio(moteurJeu); moteurGraphique = new MoteurGraphique(moteurJeu); base.Initialize(); }