diff options
| author | nathan <nathansmith@disroot.org> | 2026-01-30 14:04:52 +0000 |
|---|---|---|
| committer | nathan <nathansmith@disroot.org> | 2026-01-30 14:04:52 +0000 |
| commit | 0b35df87370fc8e4612a2c80fe4b7fb64e72f927 (patch) | |
| tree | cee79f788dc52fb98abc79556d7cdc0a8f946264 | |
| parent | 056e88894cb81f805c0f0f7dc6ba30742df4d985 (diff) | |
| download | FindThings-0b35df87370fc8e4612a2c80fe4b7fb64e72f927.tar.gz FindThings-0b35df87370fc8e4612a2c80fe4b7fb64e72f927.tar.bz2 FindThings-0b35df87370fc8e4612a2c80fe4b7fb64e72f927.zip | |
Sillyness
| -rw-r--r-- | src/game.c | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -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( |
