Ejemplo n.º 1
0
        public Sprite()
            : base()
        {
            Animations = new List<Animation>();
            Facing = Facing.Right;
            Color = Color.White;
            OffScreenAction = OffScreenAction.NO_DRAW;
            SpriteEffects = new SpriteEffects();

            if (DrawPosition != null)
                Sprite.DrawPosition = Vector2.Zero;

            if (DrawScale != null)
                Sprite.DrawScale = Vector2.Zero;

            if (DrawRectangle != null)
                Sprite.DrawRectangle = Rectangle.Empty;
        }
Ejemplo n.º 2
0
        public Sprite() : base()
        {
            Animations      = new List <Animation>();
            Facing          = Facing.Right;
            Color           = Color.White;
            OffScreenAction = OffScreenAction.NO_DRAW;
            SpriteEffects   = new SpriteEffects();

            if (DrawPosition != null)
            {
                Sprite.DrawPosition = Vector2.Zero;
            }

            if (DrawScale != null)
            {
                Sprite.DrawScale = Vector2.Zero;
            }

            if (DrawRectangle != null)
            {
                Sprite.DrawRectangle = Rectangle.Empty;
            }
        }