public override void Draw(SpriteBatch p_spritebatch, GameTime p_gametime) { BaseSprite.Draw(p_spritebatch, p_gametime); p_spritebatch.Draw(BaseSprite.Texture, new Vector2(BoundingBox.Location.X, BoundingBox.Location.Y), BaseSprite.FrameRectangle, Color.Green, 0.0f, Vector2.Zero, 0.7f, SpriteEffects.None, 1); //BoundingBox.Offset(((GameScene)Scene).mapView.X, 0); //p_spritebatch.Draw(BaseSprite.Texture, new Vector2(BoundingBox.Location.X, BoundingBox.Location.Y), BaseSprite.FrameRectangle, Color.Red, 0.0f, Vector2.Zero, 0.7f, SpriteEffects.None, 1); //BoundingBox.Offset(((GameScene)Scene).mapView.X*-1, 0); }
protected override void Draw(GameTime gameTime) { GraphicsDevice.Clear(Color.Black); spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend); torch.Draw(spriteBatch); middlePx.Draw(spriteBatch); spriteBatch.End(); base.Draw(gameTime); }
public virtual void Draw(GameTime gameTime, SpriteBatch spriteBatch) { sprite.Draw(gameTime, spriteBatch); }
public override void Draw(SpriteBatch p_spritebatch, GameTime p_gametime) { BaseSprite.Draw(p_spritebatch, p_gametime); }