Beispiel #1
0
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);



            Settings.texture_Menu          = Content.Load <Texture2D>("Menu");
            Settings.texture_bullet_blue   = Content.Load <Texture2D>("bulletBlue");
            Settings.texture_bullet_red    = Content.Load <Texture2D>("bulletRed");
            Settings.texture_bullet_yellow = Content.Load <Texture2D>("bulletYellow");


            Settings.animator.LoadContent(Content);
            Settings.sounds.LoadContent(Content);
            Settings.animator.LoadContent(Content);
            //Player
            p.LoadContent(Content);

            //Backgrounds
            bg1.LoadConent(Content);
            bg2.LoadConent(Content);

            //Astroids
            astroidField.LoadContent(Content);

            //Enemies
            enemyForce.LoadContent(Content);
        }
Beispiel #2
0
 //Load Content
 protected override void LoadContent()
 {
     spriteBatch = new SpriteBatch(GraphicsDevice);
     p.LoadContent(Content);
     bg5.LoadContent(Content);
     hud.LoadContent(Content);
     sm.LoadContent(Content);
     menuImage     = Content.Load <Texture2D>("menustart");
     gameoverImage = Content.Load <Texture2D>("gameover");
 }