Ejemplo n.º 1
0
 public void Update(GameTime gameTime)
 {
     for (int i = 0; i < bullets.Count; i++)
     {
         bullets[i].Update(gameTime);
         if (bullets[i].Destroy)
         {
             particleManager.AddRectangleDestructionParticles(Color.DarkBlue, bullets[i].location, this.collideWidth, collideWidth, 1, 1);
             actorManager.RemoveMapObject(bullets[i]);
             bullets.RemoveAt(i);
         }
     }
 }
Ejemplo n.º 2
0
 void AddDestructionParticles()
 {
     particleManager.AddRectangleDestructionParticles(new Color(239, 228, 176), this.location, this.collideWidth, this.collideHeight, 2, 2);
 }