Exemplo n.º 1
0
        public Effect(string effectName, Vector2 pos)
        {
            position        = pos;
            effectAnimation = (AnimatedTexture)EffectBank.EffectAnimations[effectName].Clone();
            effectAnimation.Play();

            isAlive = true;
        }
Exemplo n.º 2
0
        public virtual void Initialize()
        {
            moving          = false;
            velocity        = Vector2.Zero;
            playerAnimation = new AnimatedTexture(rotation, scale, depth);

            health   = 100;
            isAlive  = true;
            gridTile = GridManager.GridTile(position);
            gridTile.Add(this);
        }
Exemplo n.º 3
0
 public static void AddEffect(ContentManager Content, string assetName, int frameCount, int clipCount, int framesPerSec)
 {
     EffectAnimations[assetName] = new AnimatedTexture(0.0f, 1.0f, 0.0f);
     EffectAnimations[assetName].Load(Content, assetName, frameCount, clipCount, framesPerSec);
 }