コード例 #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);
        }
コード例 #2
0
 public bool CollidesWith(Entity other)
 {
     return GetBoundingBox().Intersects(other.GetBoundingBox());
 }
コード例 #3
0
 public bool CollidesWith(Entity other)
 {
     return(GetBoundingBox().Intersects(other.GetBoundingBox()));
 }