public void Draw(GameTime gameTime, SpriteBatch spriteBatch, LineBatch lineBatch) { foreach (Tile temp in tiles) { temp.Draw(spriteBatch, tex); } foreach (SpriteClasses.MovingSprite sprite in allCells) { sprite.Draw(spriteBatch); } foreach (MyTexture t in textures) { t.Draw(spriteBatch); } //despawn.Draw(spriteBatch); //fadingTest.DrawOverlay(spriteBatch); }
/// <summary> /// Load your graphics content. /// </summary> protected override void LoadContent() { _spriteBatch = new SpriteBatch(GraphicsDevice); _lineBatch = new LineBatch(GraphicsDevice); _assetCreator = new AssetCreator(GraphicsDevice); _assetCreator.LoadContent(_contentManager); _input.LoadContent(); // Tell each of the screens to load their content. foreach (GameScreen screen in _screens) { screen.LoadContent(); } }