private void Explode() { float angle; Vector2 v = new Vector2(); for (int i = 0; i < DEATH_SPAWNS; i++) { angle = MathHelper.TwoPi * ((float)(i + 1) / 10.0f); v.X = (float)Math.Cos(angle) * Player.BULLET_SPEED; v.Y = (float)Math.Sin(angle) * Player.BULLET_SPEED; TimedBullet b = new TimedBullet(position, v, EnemyManager.BulletTex, 0.7f); Player.AddGrower(b); } }
/// <summary> /// Adds a timed bullet to the non-collidable bullets list /// </summary> /// <param name="b">The Timed bullet to add</param> public static void AddGrower(TimedBullet b) { growers.Add((Bullet)b); }