private void MoveFallingBlockDownwards() { float top = FallingBlock.Top; FallingBlock.UpdateBrickDrawAreas(FallSpeed); if (Get <Grid>().IsValidPosition(FallingBlock)) { return; } FallingBlock.Top = top; FallingBlock.UpdateBrickDrawAreas(0.0f); Settle(); }
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); }