Exemplo n.º 1
0
 public Game1()
 {
     graphics = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
     _statut = Game_Statut.Menu;
     _menu = new Menu(this);
     _game = new Game(this);
     _menuIg = new Menu_IG(this);
     _tuto = new Tutorial(this);
     _datacenter = new DataCenter(this);
     _endgame = new Game_End(this);
     TargetElapsedTime = TimeSpan.FromTicks(333333);
     FrameStart = 0;
     FPS = 30;
     SheetSize = 5;
     FrameCounter = 0;
     MobFrameCounter = 0;
     CurrentFrame = 0;
     CurrentMobFrame = 0;
     this.Window.OrientationChanged += new EventHandler<EventArgs>(this.Oriented_changed);
 }
Exemplo n.º 2
0
 public void End_Game(bool victory, int score)
 {
     _endgame.setVictory(victory);
     _endgame.setScore(score);
     _statut = Game_Statut.EndGame;
 }
Exemplo n.º 3
0
 public void change_statut(Game_Statut statut)
 {
     if (statut == Game_Statut.DataCenter)
         _datacenter.Restart();
     _statut = statut;
 }