Ejemplo n.º 1
0
        public EffectGameComponent AddEffect(String sheetName, Vector2 position)
        {
            EffectGameComponent effect = new EffectGameComponent(this, sheetName);

            effect.Position = position;
            Components.Add(effect);
            return(effect);
        }
Ejemplo n.º 2
0
        public EffectGameComponent AddEffect(String sheetName, Vector2 position, double secondsPerFrame, int maxLoops)
        {
            EffectGameComponent effect = AddEffect(sheetName, position);

            effect.SecondsPerFrame = secondsPerFrame;
            effect.MaxLoops        = maxLoops;
            return(effect);
        }
Ejemplo n.º 3
0
 public EffectGameComponent AddEffect(String sheetName, Vector2 position)
 {
     EffectGameComponent effect = new EffectGameComponent(this, sheetName);
     effect.Position = position;
     Components.Add(effect);
     return effect;
 }