blob: 7c6ee95fd102b9e9e6f484a52a084667a3f8e24e (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
#include <raylib.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "gunner/config.h"
#include "gunner/utils.h"
#include "gunner/text.c"
#include "gunner/texture_sys.c"
#include "gunner/shader_sys.c"
#include "gunner/controller.c"
#include "gunner/rumble.c"
#include "gunner/rand_sys.c"
#include "gunner/audio_sys.c"
#include "game/config.h"
int main()
{
SetTraceLogLevel(LOG_WARNING);
InitWindow(GAME_WIDTH * DEFAULT_SCALE, GAME_HEIGHT * DEFAULT_SCALE, GAME_NAME);
SetTargetFPS(FRAMERATE);
InitAudioDevice();
rand_seed();
init_tex_sys();
init_shader_sys();
i32 idx = load_font("assets/berry-rotunda.ttf");
while(!WindowShouldClose()){
float dt = GetFrameTime();
poll_rumble(dt);
update_audio();
update_textures();
update_shaders();
ClearBackground(WHITE);
BeginDrawing();
draw_text_font(idx, "Uneven Prankster Presents", (vec2){TO_FIXED(4), TO_FIXED(4)}, 16, BLACK);
EndDrawing();
}
unload_all_fonts();
unload_active_audio();
unload_current_music();
unload_active_textures();
unload_active_shaders();
CloseAudioDevice();
CloseWindow();
return 0;
}
|