2015-02-21 13:13:58 +00:00
|
|
|
/* ReC98
|
|
|
|
* -----
|
|
|
|
* Code segment #3 of TH02's OP.EXE
|
|
|
|
*/
|
|
|
|
|
2021-03-26 12:38:17 +00:00
|
|
|
#pragma codestring "\x00"
|
|
|
|
|
2021-01-23 13:27:55 +00:00
|
|
|
extern "C" {
|
2020-04-15 15:48:40 +00:00
|
|
|
#include "th02/th02.h"
|
2021-02-07 20:03:00 +00:00
|
|
|
#include "x86real.h"
|
2021-01-26 15:33:06 +00:00
|
|
|
#include "master.hpp"
|
2020-09-05 21:55:18 +00:00
|
|
|
#include "th02/hardware/frmdelay.h"
|
2019-12-15 19:17:00 +00:00
|
|
|
#include "th02/formats/pi.h"
|
2020-02-18 18:46:34 +00:00
|
|
|
#include "th02/snd/snd.h"
|
2015-02-21 13:13:58 +00:00
|
|
|
|
2021-03-21 18:35:04 +00:00
|
|
|
#include "th02/snd/data.c"
|
|
|
|
#include "th02/snd/se_data.c"
|
|
|
|
|
2015-02-21 13:13:58 +00:00
|
|
|
void title_flash(void)
|
|
|
|
{
|
|
|
|
int page = 1;
|
|
|
|
int frame;
|
|
|
|
|
2020-09-19 12:30:57 +00:00
|
|
|
snd_se_play_force(6);
|
2015-02-21 13:13:58 +00:00
|
|
|
for(frame = 0; frame < 18; frame++) {
|
|
|
|
graph_showpage(page);
|
|
|
|
page = 1 - page;
|
|
|
|
|
|
|
|
if(frame == 0) {
|
2020-10-23 17:27:10 +00:00
|
|
|
pi_put_8(0, 0, 0);
|
2015-02-21 13:13:58 +00:00
|
|
|
} else if(frame == 5) {
|
2020-10-23 17:27:10 +00:00
|
|
|
pi_put_8(0, 0, 1);
|
2015-02-21 13:13:58 +00:00
|
|
|
} else if(frame == 10) {
|
2020-10-23 17:27:10 +00:00
|
|
|
pi_put_8(0, 0, 2);
|
2015-02-21 13:13:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if(frame % 3 == 0) {
|
|
|
|
palette_settone(150);
|
|
|
|
} else if(frame % 3 == 1) {
|
|
|
|
palette_settone(100);
|
|
|
|
}
|
|
|
|
frame_delay(1);
|
|
|
|
}
|
|
|
|
graph_showpage(0);
|
2020-10-25 13:02:12 +00:00
|
|
|
pi_free(0);
|
|
|
|
pi_free(1);
|
|
|
|
pi_free(2);
|
2015-02-21 13:13:58 +00:00
|
|
|
}
|
2021-01-23 13:27:55 +00:00
|
|
|
|
|
|
|
}
|