Exemplo n.º 1
0
        public RenderSimple(ActorInitializer init, RenderSimpleInfo info, Func <int> baseFacing)
            : base(init, info)
        {
            this.info = info;

            DefaultAnimation = new Animation(init.World, GetImage(init.Self), baseFacing);
            Add(DefaultAnimation);
        }
Exemplo n.º 2
0
 public RenderSimple(ActorInitializer init, RenderSimpleInfo info)
     : this(init, info, MakeFacingFunc(init.Self))
 {
     DefaultAnimation.PlayRepeating(NormalizeSequence(init.Self, "idle"));
 }