Example #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);
        }
Example #2
0
 public RenderSimple(ActorInitializer init, RenderSimpleInfo info)
     : this(init, info, MakeFacingFunc(init.Self))
 {
     DefaultAnimation.PlayRepeating(NormalizeSequence(init.Self, "idle"));
 }