protected override void LoadContent() { _spriteBatch = new SpriteBatch(GraphicsDevice); saucerTxr = Content.Load <Texture2D>("saucer"); missileTxr = Content.Load <Texture2D>("missile"); backgroundTxr = Content.Load <Texture2D>("background"); particleTxr = Content.Load <Texture2D>("particle"); UiFont = Content.Load <SpriteFont>("UIFont"); BigFont = Content.Load <SpriteFont>("BigFont"); shipExplodeSnd = Content.Load <SoundEffect>("shipExplode"); missileExplodeSnd = Content.Load <SoundEffect>("missileExplode"); backgroundSprite = new Sprite(backgroundTxr, new Vector2()); playerSprite = new PlayerSprite(saucerTxr, new Vector2(screenSize.X / 6, screenSize.Y / 2)); }
protected override void LoadContent() { _spriteBatch = new SpriteBatch(GraphicsDevice); backTex = Content.Load <Texture2D>("back"); saucerTex = Content.Load <Texture2D>("saucer"); missileTex = Content.Load <Texture2D>("missile"); uiFont = Content.Load <SpriteFont>("DMFont"); bigFont = Content.Load <SpriteFont>("BigFont"); particleTex = Content.Load <Texture2D>("particle"); missileBoom = Content.Load <SoundEffect>("Missile Boom"); shipBoom = Content.Load <SoundEffect>("Ship Boom"); music = Content.Load <Song>("Landing v1 Looping"); background = new Sprite(backTex, new Vector2()); playerSprite = new PlayerSprite(saucerTex, new Vector2(screenSize.X / 7, screenSize.Y / 2)); }
protected override void LoadContent() { _spriteBatch = new SpriteBatch(GraphicsDevice); saucerTxr = Content.Load <Texture2D>("saucer"); missileTxr = Content.Load <Texture2D>("missile"); backgroundTxr = Content.Load <Texture2D>("background"); particleTxr = Content.Load <Texture2D>("particle"); uiFont = Content.Load <SpriteFont>("UIFont"); bigFont = Content.Load <SpriteFont>("BigFont"); backgroundSprite = new Sprite(backgroundTxr, new Vector2()); bossBattle = Content.Load <Song>("Boss Battle!!"); missileExplode = Content.Load <SoundEffect>("Explosion"); shipExplode = Content.Load <SoundEffect>("shipExplode"); playerSprite = new PlayerSprite(saucerTxr, new Vector2(screenSize.X / 6, screenSize.Y / 2)); MediaPlayer.Play(bossBattle); // TODO: use this.Content to load your game content here }