diff options
Diffstat (limited to 'src/game.c')
| -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( |
