aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
index 2969014..cd97769 100644
--- a/src/game.c
+++ b/src/game.c
@@ -112,6 +112,27 @@ void updateMainMenuScene(Game* game)
float buttonWidth = 150.0;
float buttonHeight = 50.0;
+ int lineCount = 15;
+
+ SetRandomSeed(GetTime() * 2.0);
+
+ for (int count = 0; count < lineCount; ++count)
+ {
+ DrawRectangle(GetRandomValue(0, renderWidth),
+ GetRandomValue(0, renderHeight),
+ 10,
+ 10,
+ PURPLE);
+
+ DrawLineEx(
+ (Vector2){GetRandomValue(0, renderWidth),
+ GetRandomValue(0, renderHeight)},
+ (Vector2){GetRandomValue(0, renderWidth),
+ GetRandomValue(0, renderHeight)},
+ 2.0,
+ BLACK);
+ }
+
// Draw logo.
float currentTime = GetTime();
Texture logoTexture = game->assets.textures[LOGO_TEXTURE];
@@ -147,6 +168,7 @@ void updateMainMenuScene(Game* game)
disableGameCursor(game);
}
+ // Exit button.
position.y += buttonHeight + 1.0;
if (GuiButton(