aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2026-01-30 14:04:52 +0000
committernathan <nathansmith@disroot.org>2026-01-30 14:04:52 +0000
commit0b35df87370fc8e4612a2c80fe4b7fb64e72f927 (patch)
treecee79f788dc52fb98abc79556d7cdc0a8f946264
parent056e88894cb81f805c0f0f7dc6ba30742df4d985 (diff)
downloadFindThings-0b35df87370fc8e4612a2c80fe4b7fb64e72f927.tar.gz
FindThings-0b35df87370fc8e4612a2c80fe4b7fb64e72f927.tar.bz2
FindThings-0b35df87370fc8e4612a2c80fe4b7fb64e72f927.zip
Sillyness
-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(