Exemplo n.º 1
0
 public bool IntersectsWith(GameObject other)
 {
     return this.Left < other.Right && this.Right > other.Left && this.Top < other.Bottom && this.Bottom > other.Top;
 }
Exemplo n.º 2
0
 protected override void HitCeiling(GameObject topHit)
 {
     if (topHit is Block)
     {
         if (canHitBlock)
         {
             if (--((Block)topHit).life < 0)
                 room.blocks.BufferRemove(topHit);
             canHitBlock = false;
         }
     }
     base.HitCeiling(topHit);
 }
Exemplo n.º 3
0
 protected virtual void HitCeiling(GameObject topHit)
 {
     // Nothing.
 }