Пример #1
0
        public Lily() : base()
        {
            
            _sprite = AnimatedSpriteEntity.Create(@"Graphics\SpriteSheets\16x16");
            _sprite.Origin = new Vector2(0.5f, 0.5f);
            _sprite.Play("walkdown");

            _spriteController = new CardinalSpriteController(_sprite);
        }
Пример #2
0
 protected override void Initialize()
 {
     Position = new Vector2(1,531);
     _backGroundArea = new Rectangle((int)Position.X, (int)Position.Y, _dialogWidth, _dialogHeight);
     _textFont = G.Content.Load<SpriteFont>(_fontLocation);
     _textFont.LineSpacing = 53;
     _sprite = AnimatedSpriteEntity.Create(@"Graphics\SpriteSheets\16x16");
     _sprite.Play("Active");
     _sprite.Scale = new Vector2(4,4);
     _sprite.Position = new Vector2(1175, 75) + Position;
     _sprite.IsVisible = true;
 }
Пример #3
0
 protected override void Initialize()
 {
     _sprite = AnimatedSpriteEntity.Create(_spriteSheet);
     _sprite.Play(_spriteAnimation);
 }