public Effect(string effectName, Vector2 pos) { position = pos; effectAnimation = (AnimatedTexture)EffectBank.EffectAnimations[effectName].Clone(); effectAnimation.Play(); isAlive = true; }
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); }
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); }