コード例 #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);
     }
 }
コード例 #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);
 }
コード例 #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);
 }
コード例 #4
0
ファイル: Tile.cs プロジェクト: nitro404/Lamb_Mines
 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);
 }
コード例 #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());
 }