diff options
| author | physick <mynameisgennadiy@vk.com> | 2026-08-30 16:14:59 +0500 |
|---|---|---|
| committer | physick <mynameisgennadiy@vk.com> | 2026-08-30 16:14:59 +0500 |
| commit | 1e7ec08dc9c62df43940d00c1fae4a6e54464b86 (patch) | |
| tree | ee4f3170153fd4dc88feb35b13d541e910780711 /src/main.c | |
| parent | 935ed0235d0454cd18559fb0f6ee58e0647723fd (diff) | |
puzzle collection rewrite
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 20 |
1 files changed, 13 insertions, 7 deletions
@@ -4,6 +4,12 @@ #include "resources/resources.h" int main(void) { + CollectionElement el = { + .path = "puzzles", + .type = COLLECTION_ELEMENT_COLLECTION, + .IsInitialized = false, + }; + Puzzle *puzzle = ReadPuzzleFromFile("puzzles/test.pz"); PrintPuzzle(puzzle); @@ -21,15 +27,15 @@ int main(void) { return 1; } - // if (!AddScene(CreatePuzzleCollectionScene("puzzles"))) { - // printf("Failed to create a collection scene\n"); - // return 1; - // } - - if (!AddScene(CreatePuzzleScene(puzzle))) { - printf("Failed to create a puzzle menu\n"); + if (!AddScene(CreatePuzzleCollectionScene("puzzles", &el))) { + printf("Failed to create a collection scene\n"); return 1; } + + // if (!AddScene(CreatePuzzleScene(puzzle))) { + // printf("Failed to create a puzzle menu\n"); + // return 1; + // } SetConfigFlags(FLAG_WINDOW_RESIZABLE); InitWindow(800, 600, "Programming game"); |
