示例#1
0
        private void MoveFallingBlockDownwards()
        {
            float top = FallingBlock.Top;

            FallingBlock.UpdateBrickDrawAreas(FallSpeed);
            if (Get <Grid>().IsValidPosition(FallingBlock))
            {
                return;
            }
            FallingBlock.Top = top;
            FallingBlock.UpdateBrickDrawAreas(0.0f);
            Settle();
        }
示例#2
0
 private void CreateUpcomingBlock()
 {
     UpcomingBlock      = new Block(displayMode, content, Vector2D.Zero);
     UpcomingBlock.Left = upcomingBlockCenter.X - UpcomingBlock.Center.X;
     UpcomingBlock.Top  = upcomingBlockCenter.Y - UpcomingBlock.Center.Y;
     UpcomingBlock.UpdateBrickDrawAreas(0.0f);
 }
示例#3
0
		private void CreateUpcomingBlock()
		{
			UpcomingBlock = new Block(displayMode, content, Vector2D.Zero);
			UpcomingBlock.Left = upcomingBlockCenter.X - UpcomingBlock.Center.X;
			UpcomingBlock.Top = upcomingBlockCenter.Y - UpcomingBlock.Center.Y;
			UpcomingBlock.UpdateBrickDrawAreas(0.0f);
		}