2017-08-13 00:52:18 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#include "gr-sim.h"
|
|
|
|
#include "tfv_utils.h"
|
|
|
|
#include "tfv_zp.h"
|
|
|
|
#include "tfv_backgrounds.h"
|
|
|
|
|
|
|
|
static char *title_menu[]={
|
|
|
|
"NEW GAME",
|
|
|
|
"LOAD GAME",
|
|
|
|
"CREDITS",
|
|
|
|
};
|
|
|
|
|
|
|
|
int title(void) {
|
|
|
|
|
|
|
|
int result;
|
|
|
|
|
2018-01-08 19:01:19 +00:00
|
|
|
ram[DRAW_PAGE]=PAGE0;
|
|
|
|
clear_bottom();
|
|
|
|
ram[DRAW_PAGE]=PAGE1;
|
|
|
|
clear_bottom();
|
|
|
|
ram[DRAW_PAGE]=PAGE2;
|
|
|
|
clear_bottom();
|
2017-08-13 00:52:18 +00:00
|
|
|
|
2017-08-13 19:17:03 +00:00
|
|
|
grsim_unrle(title_rle,0xc00);
|
2017-08-13 00:52:18 +00:00
|
|
|
|
2017-08-14 02:59:37 +00:00
|
|
|
gr_copy_to_current(0xc00);
|
|
|
|
page_flip();
|
|
|
|
gr_copy_to_current(0xc00);
|
|
|
|
|
|
|
|
// page_flip();
|
|
|
|
// page_flip();
|
|
|
|
|
|
|
|
// grsim_update();
|
2017-08-13 00:52:18 +00:00
|
|
|
|
|
|
|
result=select_menu(12, 22, 3, title_menu);
|
|
|
|
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|