blob: 4160b94d10190d54fb5aface8b84da292115c9b4 (
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
40
41
42
43
44
45
46
47
48
49
50
|
#include <raylib.h>
#include "texture_sys.h"
#include "shader_sys.h"
#include "script_sys.h"
#include "controller.h"
#include "rand_sys.h"
#include "audio_sys.h"
int main()
{
InitWindow(640, 480, "Gunner Engine");
SetTargetFPS(60);
InitAudioDevice();
rand_seed();
init_tex_sys();
init_shader_sys();
init_script_sys();
while(!WindowShouldClose()){
float dt = GetFrameTime();
poll_rumble(dt);
update_audio();
update_textures();
update_shaders();
ClearBackground(WHITE);
BeginDrawing();
update_script();
EndDrawing();
}
unload_active_audio();
unload_current_music();
deinit_script_sys();
unload_active_textures();
unload_active_shaders();
CloseAudioDevice();
CloseWindow();
return 0;
}
|