15void draw_menu(
const char** menu_options,
int menu_count,
int selected_index) {
20 print_text(MENU_START_Y, MENU_START_X, TITLE, RED_TEXT_COLORS);
23 int y = MENU_START_Y + 3;
24 for (
int i = 0; i < menu_count; i++) {
25 if (i == selected_index) {
27 print_text(y, MENU_START_X, menu_options[i], INVERTED_COLORS);
32 y += MENU_ITEM_SPACING;
44 print_text_default(MENU_START_Y, MENU_START_X, save_menu_strings[WARNING_LOST_PROGRESS]);
55 if (input_event.raw_input.id ==
'y' || input_event.raw_input.id ==
'Y') {
57 }
else if (input_event.raw_input.id ==
'n' || input_event.raw_input.id ==
'N') {
Defines common macros, types, and global variables for color schemes and utilities.
Header file for logging functionality of the game.
void print_text(int y, int x, const char *text, uint64_t ncchannel)
Print text at a specific position.
void print_text_default(int y, int x, const char *text)
Print text at a specific position with default colors.
bool render_frame(void)
Render the current frame.
void clear_screen(void)
Clear the screen.
Exposes functions for outputting to the console.