/// <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 }
public WinScreen(SceneManager sm, SpriteManager spm, SoundManager som) : base(sm, spm, som) { lastState = GamePad.GetState(PlayerIndex.One); sm_ = sm; }
public Legend(SceneManager scm, SpriteManager spm, SoundManager som) : base(scm, spm, som) { lastState = GamePad.GetState(PlayerIndex.One); textPos = Vector2.Zero; }
public TitleScreen(SceneManager sm, SpriteManager spm_, SoundManager som) : base(sm, spm_, som) { lastState = GamePad.GetState(PlayerIndex.One); som_.play(SoundManager.ESound.BEGIN); }
public Play(SceneManager sm, SpriteManager spm, SoundManager som) : base(sm, spm, som) { load(); }
public Pause(SceneManager sm, SpriteManager spm, SoundManager som) : base(sm, spm, som) { recent = false; }
public AScene(SceneManager scm, SpriteManager spm, SoundManager som) { scm_ = scm; spm_ = spm; som_ = som; }