Ejemplo n.º 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);

            // TODO: use this.Content to load your game content here
            explosion       = Content.Load <SoundEffect>("galaga_destroyed");
            bossDamaged     = Content.Load <SoundEffect>("bossgalaga_injured");
            playerExplosion = Content.Load <SoundEffect>("fighter_destroyed");
            extraShip       = Content.Load <SoundEffect>("extra_ship");
            font1           = Content.Load <SpriteFont>("SpriteFont1");
            Texture2D bannder = Content.Load <Texture2D>("banner");

            titleScreen = new TitleScreen(bannder, font1, window.Width, window.Height, GraphicsDevice);
        }