Пример #1
0
        public bool VerificarColisionMonsBal(Bala b)
        {
            bool respuesta = false;

            for (int i = 0; i < monstruos.Length; i++)
            {
                if (monstruos[i].GetRectangle().IntersectsWith(b.GetRectangle()))
                {
                    respuesta = true;
                    monstruos[i].Desaparecer();
                }
            }
            return(respuesta);
        }