Пример #1
0
 /// <summary>
 /// LoadContent will be called once per game and is the place to load
 /// all of your content.
 /// </summary>
 protected override void LoadContent()
 {
     // Create a new SpriteBatch, which can be used to draw textures.
     try
     {
         sm = new SceneManager(new SpriteManager(new SpriteBatch(GraphicsDevice), Content, graphics.GraphicsDevice), new SoundManager(Content));
     }
     catch (Exception e)
     {
         Console.WriteLine(e.Message);
         isExiting = true;
         this.Exit();
         //Console.WriteLine("END EXCEPTION");
     }
     // TODO: use this.Content to load your game content here
 }
Пример #2
0
 public WinScreen(SceneManager sm, SpriteManager spm, SoundManager som)
     : base(sm, spm, som)
 {
     lastState = GamePad.GetState(PlayerIndex.One);
     sm_ = sm;
 }
Пример #3
0
 public Legend(SceneManager scm, SpriteManager spm, SoundManager som)
     : base(scm, spm, som)
 {
     lastState = GamePad.GetState(PlayerIndex.One);
     textPos = Vector2.Zero;
 }
Пример #4
0
 public TitleScreen(SceneManager sm, SpriteManager spm_, SoundManager som)
     : base(sm, spm_, som)
 {
     lastState = GamePad.GetState(PlayerIndex.One);
     som_.play(SoundManager.ESound.BEGIN);
 }
Пример #5
0
 public Play(SceneManager sm, SpriteManager spm, SoundManager som)
     : base(sm, spm, som)
 {
     load();
 }
Пример #6
0
 public Pause(SceneManager sm, SpriteManager spm, SoundManager som)
     : base(sm, spm, som)
 {
     recent = false;
 }
Пример #7
0
 public AScene(SceneManager scm, SpriteManager spm, SoundManager som)
 {
     scm_ = scm;
     spm_ = spm;
     som_ = som;
 }