Пример #1
0
        public virtual void Draw(SpriteBatch spriteBatch, Vector2 Position)
        {
            Rectangle sourceRectangle = new Rectangle(0, 0, 96, 96);

            destinationRectangle = new Rectangle((int)GlobalDefinitions.Position.X, (int)GlobalDefinitions.Position.Y, 96, 96);
            //use texture2dStorage to get the texture2d of the sprite
            spriteBatch.Draw(Texture2DStorage.GetDownIdleLinkSpriteSheet(), destinationRectangle, sourceRectangle, Color.White);
        }
Пример #2
0
 public void Draw(SpriteBatch spriteBatch)
 {
     GetSprite.Draw(Texture2DStorage.GetDownIdleLinkSpriteSheet(), spriteBatch, GlobalDefinitions.Position);
 }