/// <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. SpriteBatch = new SpriteBatch(GraphicsDevice); Sprite = new AnimatedSprite(Content.Load<Texture2D>("Bat"), 1, 32, 31); startScreen = new StartScreen(this, this.SpriteBatch); activeScreen = Screen.StartScreen; base.LoadContent(); // TODO: use this.Content to load your game content here }
public void showInstructions() { instructions = new Instructions(this, this.SpriteBatch); activeScreen = Screen.Instructions; startScreen = null; }
public void startGameMode() { gameMode = new GameMode(this); activeScreen = Screen.GameMode; startScreen = null; gameOverScreen = null; }
public void goStartScreen() { startScreen = new StartScreen(this, this.SpriteBatch); activeScreen = Screen.StartScreen; instructions = null; }