diff options
| author | physick <mynameisgennadiy@vk.com> | 2026-08-31 17:16:44 +0500 |
|---|---|---|
| committer | physick <mynameisgennadiy@vk.com> | 2026-08-31 17:16:44 +0500 |
| commit | e4b96cc66d8c4269661745ce187cb58c852542d3 (patch) | |
| tree | 4268a1ee350a9d762694e1de8803493ba4237bb1 /src/scenes/puzzleSelectionScene.c | |
| parent | b45620544427306854a28a5163fafd45b007acc2 (diff) | |
transitions
Diffstat (limited to 'src/scenes/puzzleSelectionScene.c')
| -rw-r--r-- | src/scenes/puzzleSelectionScene.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/scenes/puzzleSelectionScene.c b/src/scenes/puzzleSelectionScene.c new file mode 100644 index 0000000..8529e35 --- /dev/null +++ b/src/scenes/puzzleSelectionScene.c @@ -0,0 +1,29 @@ +#include <raylib.h> +#include <stdlib.h> +#include "scenes.h" +#include "../resources/resources.h" + +bool updateMainMenu(void *self) { + return true; +} + +bool drawMainMenu(void *self) { + DrawBackground(); + DrawText("Main menu", 0, 0, 100, BLACK); + return true; +} + +void deinitMainMenu(void *self) { + TraceLog(LOG_INFO, "Deleting a main menu"); + free((Scene *)self); +} + +Scene *CreateMainMenu() { + TraceLog(LOG_INFO, "Creating a main menu"); + Scene *outp = malloc(sizeof(Scene)); + outp->Update = updateMainMenu; + outp->Draw = drawMainMenu; + outp->Deint = deinitMainMenu; + outp->IsTransparent = false; + return outp; +} |
