Exemple #1
0
 public override void Draw(SpriteBatch spriteThing, GameTime gameTime, Vector2 Offset)
 {
     base.Draw(spriteThing, gameTime, Offset);
     if (shadowObject != null)
     {
         spriteThing.Draw(shadowTexture, GlobalHelpers.GetScreenCoords(Centre) + Offset, Color.White);
     }
 }
Exemple #2
0
 public override void Draw(SpriteBatch sb, GameTime gameTime, Vector2 Offset)
 {
     base.Draw(sb, gameTime, Offset);
     if (shadowTexture != null)
     {
         sb.Draw(shadowTexture, GlobalHelpers.GetScreenCoords(Position + Offset), Color.White);
     }
     //sb.Draw(myTexture, Position + Offset, Color.White);
 }
Exemple #3
0
 public override void Draw(SpriteBatch spriteThing, GameTime gameTime, Vector2 Offset)
 {
     //Vector2 position = new Vector2((float)Position.X, (float)Position.Y);
     //position = GlobalHelpers.GetScreenCoords(position);
     spriteThing.Draw(myTexture, GlobalHelpers.GetScreenCoords(Position + Offset), Color.White);
 }
Exemple #4
0
 public override void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch sb, Microsoft.Xna.Framework.GameTime gameTime, Vector2 Offset)
 {
     sb.Draw(myTexture, GlobalHelpers.getTilePositionOffset(GlobalHelpers.GetScreenCoords(Position + Offset), myTexture.Height), Color.White);
 }
Exemple #5
0
 /// <summary>
 /// General draw loop
 /// </summary>
 public override void Draw(SpriteBatch sb, GameTime gameTime, Vector2 Offset)
 {
     animationPlayer.Draw(gameTime, sb, GlobalHelpers.GetScreenCoords(Position + Offset), new SpriteEffects());
 }