Exemplo n.º 1
0
        protected override void emitStatusParticle(particleEmissionCallback callback)
        {
            Rectangle boundingBox = entity.GetBoundingBox();
            float     x           = boundingBox.X + Game1.Random.Next(boundingBox.Width);
            float     y           = boundingBox.Y + Game1.Random.Next(boundingBox.Height);

            callback(x, y);
        }
 public bool CollidesWith(Entity other)
 {
     return GetBoundingBox().Intersects(other.GetBoundingBox());
 }
Exemplo n.º 3
0
 public bool CollidesWith(Entity other)
 {
     return(GetBoundingBox().Intersects(other.GetBoundingBox()));
 }