blob: 7bf8c87299ff9664a7edae568d56119cd3eb45e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#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;
}
if (!AddScene(CreateMainMenu())) {
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()) {
UpdateScene();
BeginDrawing();
DrawScene();
EndDrawing();
}
CloseWindow();
return 0;
}
|