public void AddSpawnableEffect(SpawnableEffect_Type type, Vector2 position, int timer, bool onLowestLayer = true, bool randomPosition = false, float velocityX = 0, float velocityY = 0, double extraScale = 0)
        {
            var effect = SpawnableEffect_Library.GetSpawnableEffect(type);

            effect.SpawnCopyOfEffect(position, timer, onLowestLayer, randomPosition, velocityX, velocityY, extraScale);
            TheSpawnableEffectList.Add(effect);
        }
        public void AddSpawnableEffect(SpawnableEffect_Type type, Vector2 position, int timer, double extraScale = 0)
        {
            var effect = SpawnableEffect_Library.GetSpawnableEffect(type);

            effect.SpawnCopyOfEffect(position, timer, true, false, 0, 0, extraScale);
            TheSpawnableEffectList.Add(effect);
        }
Beispiel #3
0
 public SpawnableEffect(ContentManager Content, SpawnableEffect_Type type)
 {
     Velocity = Vector2.Zero;
     Type     = type;
     AliveTimer_Milliseconds = 0;
     Position = new Vector2(0, -500);
     SpawnableEffectAnimation = new Animation(Position, Vector2.One, new Vector2(1, 1));
     SpawnableEffectAnimation.AnimationImage = Content.Load <Texture2D>("SpawnableEffects/" + type.ToString());
     OnLowestLayer = true;
 }
Beispiel #4
0
 public static void AddSpawnableEffect(SpawnableEffect_Type type, Vector2 position, int timer, bool onLowestLayer = true, bool randomPosition = false, float velocityX = 0, float velocityY = 0, double extraScale = 0)
 {
     SpawnableEffect_List.AddSpawnableEffect(type, position, timer, onLowestLayer, randomPosition, velocityX, velocityY, extraScale);
 }
Beispiel #5
0
 public static void AddSpawnableEffect(SpawnableEffect_Type type, Vector2 position, int timer, double extraScale = 0)
 {
     SpawnableEffect_List.AddSpawnableEffect(type, position, timer, extraScale);
 }
 public SpawnableEffect GetSpawnableEffect(SpawnableEffect_Type type)
 {
     return(TheSpawnableEffect_Library[type].GetCopy());
 }