public void addExplosion(Vector2 p, Vector2 vel, float scale, Color col) { Bullet s = new Bullet(explosionSprite, p, vel, 1, levelManager, col, 0); s.setScale(scale); s.setGrow(true, 0.06f); effects.Add(s); }
public void addSparks(Vector2 p, Vector2 vel) { int num = Game1.random.Next(0, 6); for (int i = 0; i < num; i++) { Vector2 v = new Vector2(Game1.random.Next(-3, 3), Game1.random.Next(-3, 3)); Color col = new Color(255, Game1.random.Next(180, 256), 40); Bullet s = new Bullet(sparkSprite, p, v + vel, 1, levelManager, Color.Yellow, 0); s.setScale(0.5f); effects.Add(s); } }