/// <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 mPlayerSprite.LoadContent(this.Content); mBackgroundSprite.LoadContent(this.Content); mEnemyGroup.LoadContent(this.Content); foreach (Shield shield in mShieldSprites) { shield.LoadContent(this.Content); } font = Content.Load <SpriteFont>("GameText"); }
public void resetGame() { player = new Player(this, scrollSpeed); player.setSize(height, width); player.Initialize(); em = new EnemyManager(this, width, height); em.Initialize(); pum = new PowerUpManager(this, width, height); pum.Initialize(); player.LoadContent(Content); em.LoadContent(Content); pum.LoadContent(Content); bgSpace = new Background_Space(this); bgSpace.Initialize(); }