Example #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.
            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
        }
Example #2
0
 public void showInstructions()
 {
     instructions = new Instructions(this, this.SpriteBatch);
     activeScreen = Screen.Instructions;
     startScreen = null;
 }
Example #3
0
 public void startGameMode()
 {
     gameMode = new GameMode(this);
     activeScreen = Screen.GameMode;
     startScreen = null;
     gameOverScreen = null;
 }
Example #4
0
 public void goStartScreen()
 {
     startScreen = new StartScreen(this, this.SpriteBatch);
     activeScreen = Screen.StartScreen;
     instructions = null;
 }