diff options
| author | Physick <96335032+DegustatorPonos@users.noreply.github.com> | 2026-07-07 19:05:45 +0500 |
|---|---|---|
| committer | Physick <96335032+DegustatorPonos@users.noreply.github.com> | 2026-07-07 19:05:45 +0500 |
| commit | 1a095735b1d8e7ade61ac4f936032e0c9dcc044f (patch) | |
| tree | d4b61b54b170cf47e88381095baedb03eb26433d /src/main.c | |
| parent | de52d82dc62db5d6883cf870a2c3cdc08a178b4f (diff) | |
Resources loading
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -1,8 +1,10 @@ #include <stdio.h> #include <raylib.h> #include "scenes/scenes.h" +#include "resources/resources.h" int main(void) { + if (!InitSceneStack()) { printf("Failed to create a scene stack\n"); return 1; @@ -12,16 +14,22 @@ int main(void) { printf("Failed to create a main menu\n"); return 1; } + + if (!AddScene(CreatePuzzleScene(GetTestPuzzle()))) { + printf("Failed to create a puzzle menu\n"); + return 1; + } + SetConfigFlags(FLAG_WINDOW_RESIZABLE); InitWindow(800, 600, "Programming game"); + LoadResources(); SetTargetFPS(60); while (!WindowShouldClose()) { - BeginDrawing(); - UpdateScene(); - DrawScene(); + BeginDrawing(); + DrawScene(); EndDrawing(); } |
