#include #include #include "keyb.h" #include "vga.h" #include "text.h" #include "data.h" #include "game.h" uint8_t run_menu() { char b[10]; blit_erase(0); sprintf(b, "HI %06li", get_hiscore()); put_text(124, 10, b, 5); Rect dst = { 80, 45, 160, 38 }; blit(binary_title_start, &dst); put_text(84, 110, "PRESS SPACE TO PLAY", 1); put_text(64, 140, "CODE, GRAPHICS AND SOUND", 2); put_text(96, 150, "JUAN J. MARTINEZ", 3); put_text(96, 180, "_2023 USEBOX.NET", 1); wait_vsync(); blit_update(); while (1) { if (keys[KEY_ESC]) return 0; if (keys[KEY_SPACE]) return 1; } }