3a1c3d229ee20b8cf87d3d54d2f1a2b14047d197
1 #include "badge_main_loop.h"
3 #include "jumpnrun/jumpnrun.h"
4 #include "ui/display.h"
14 void badge_main_loop(void) {
15 char const *const menu
[] = {
29 size_t choice
= badge_menu(menu
, ARRAY_SIZE(menu
), 0, 0);
31 printf("%zu\n", choice
);
34 FILE *fd
= fopen("../badge/jumpnrun/levels.txt", "r");
37 while(fgets(buf
, sizeof(buf
), fd
)) {
38 buf
[strlen(buf
) - 1] = '\0';
40 sprintf(lvname
, "../badge/jumpnrun/%s.lvl", buf
);
41 while(jumpnrun_play(lvname
) != JUMPNRUN_WON
)
This page took 0.041315 seconds and 3 git commands to generate.