Exemplo n.º 1
0
        public void Place(Vector2f centre, string animation_name, bool repeat = false)
        {
            var effect = new AnimatedEffect();

            effect.Animation = new cAnimation(cAnimationAssets.Get(animation_name));
            effect.Animation.AnimData.Repeat = repeat;
            effect.Centre = centre;
            this.Place(effect);
        }
Exemplo n.º 2
0
        public void PlaceGround(float x, float groundY, string animation_name)
        {
            var effect = new AnimatedEffect();

            effect.Animation = new cAnimation(cAnimationAssets.Get(animation_name));

            int h = effect.Animation.AnimData.ViewOffsetRect.Height;

            effect.Centre = new Vector2f(x, groundY - (h / 2.0f));
            this.Place(effect);
        }
Exemplo n.º 3
0
 public void Place(AnimatedEffect effect)
 {
     this.effects.Add(effect);
 }