Example #1
0
        private void DrawSquare(Vector2 topLeft, Vector2 bottomRight, bool transformVectors)
        {
            if (transformVectors)
            {
                topLeft     = GetTransformedVector(topLeft);
                bottomRight = GetTransformedVector(bottomRight);
            }

            BasicGraphics.DrawSquare(topLeft, bottomRight);
        }
Example #2
0
        private void DrawOverlayScreen(bool isLevelCompleteScreen, float rating = 0)
        {
            BasicGraphics.SetColor4(0.0f, 0.0f, 0.0f, 0.85f);
            BasicGraphics.DrawSquare(new Vector2(-2, 2), new Vector2(2, -2));

            Texture headerTexture = isLevelCompleteScreen ? overlayGameComplete : overlayGamePaused;

            DrawTexture(headerTexture, new Vector2(-0.6f, 0.6f), new Vector2(0.6f, 0.36f));

            if (isLevelCompleteScreen)
            {
                DrawRatings(rating);
            }

            DrawTexture(overlayPressX, new Vector2(-0.6f, -0.4f), new Vector2(0.6f, -0.64f));
        }