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 "rodeo.h"
#include "enemies.h"
#include "debug.h"
void draw_debug_text(cstr renderer_name, float fps_display)
{
rodeo_debug_text_draw(
1,
1,
" using %s renderer ",
cstr_str(
&renderer_name
)
);
rodeo_debug_text_draw(
2,
2,
" frame count: %"PRIu64" ",
rodeo_frame_count_get()
);
rodeo_debug_text_draw(
2,
3,
" fps: %.2f ",
fps_display
);
rodeo_debug_text_draw(
2,
4,
" enemy count: %d ",
get_enemy_count()
);
rodeo_debug_text_draw(
2,
5,
" ghost count: %d ",
get_ghost_count()
);
rodeo_debug_text_draw(
2,
6,
" total count: %d ",
get_ghost_count() + get_enemy_count()
);
}
|