public void SpawnGore(int goreType, int width, int height, int amount)
 {
     for (int g = 0; g < amount; g++)
     {
         Vector2 pos = position + new Vector2(Main.random.Next(0, width), Main.random.Next(0, height));
         Vector2 vel = new Vector2(Main.random.Next(-2, 3) / 5f, Main.random.Next(1, 5) / 5f);
         Gore.NewGoreParticle(goreType, pos, vel, 8f, 0.8f, Main.random.Next(0, 100) / 1000f);
     }
 }
Beispiel #2
0
 private void SpawnGore(int amount)
 {
     for (int g = 0; g < amount; g++)
     {
         int     goreType  = Main.random.Next(2, 3 + 1);
         Vector2 pos       = position + new Vector2(Main.random.Next(0, asteroidWidth), Main.random.Next(0, asteroidHeight));
         Vector2 vel       = new Vector2(Main.random.Next(-2, 3) / 5f, Main.random.Next(1, 5) / 5f);
         float   goreScale = Main.random.Next(50, 100 + 1) / 100f;
         Gore.NewGoreParticle(goreType, pos, vel, 8f, goreScale, Main.random.Next(0, 100) / 1000f);
     }
 }