Exemplo n.º 1
0
        protected bool BlockBelowIsBounced()
        {
            int x = (int)Position.X + spriteFrame.Rectangle.Width / 2;
            int y = (int)Position.Y + spriteFrame.Rectangle.Height;
            int bx;
            int by;

            if (level.GetBlockAtPixel("Block", x + level.GetScrollX(), y + 1, out bx, out by) != 0)
            {
                if (level.IsBlockBouncing("Block", bx, by))
                {
                    return(true);
                }
            }
            return(false);
        }