summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorPhysick <96335032+DegustatorPonos@users.noreply.github.com>2026-07-07 19:05:45 +0500
committerPhysick <96335032+DegustatorPonos@users.noreply.github.com>2026-07-07 19:05:45 +0500
commit1a095735b1d8e7ade61ac4f936032e0c9dcc044f (patch)
treed4b61b54b170cf47e88381095baedb03eb26433d /src/main.c
parentde52d82dc62db5d6883cf870a2c3cdc08a178b4f (diff)
Resources loading
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index af955f0..7bf8c87 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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();
}