private Shape getRandomShapeWithCenterAligned() { var shape = ShapesHandler.GetRandomShape(); // Calculate the x and y values as if the shape lies in the center currentX = 7; currentY = -shape.Height; return(shape); }
private Shape getRandomShapeCenter() { var shape = ShapesHandler.GetRandomShape(); currentX = (int)Math.Floor((double)gridWidth / 2.0f); if (currentShape == null) { currentY = -shape.Height; } else { currentY = -currentShape.Height; } return(shape); }