mirror of https://github.com/nmlgc/ReC98.git
41 lines
705 B
C
41 lines
705 B
C
/* ReC98
|
|
* -----
|
|
* Code segment #3 of TH02's OP.EXE
|
|
*/
|
|
|
|
#include "th02/th02.h"
|
|
#include "th02/hardware/frmdelay.h"
|
|
#include "th02/formats/pi.h"
|
|
#include "th02/snd/snd.h"
|
|
|
|
void title_flash(void)
|
|
{
|
|
int page = 1;
|
|
int frame;
|
|
|
|
snd_se_play_force(6);
|
|
for(frame = 0; frame < 18; frame++) {
|
|
graph_showpage(page);
|
|
page = 1 - page;
|
|
|
|
if(frame == 0) {
|
|
pi_put_8(0, 0, 0);
|
|
} else if(frame == 5) {
|
|
pi_put_8(0, 0, 1);
|
|
} else if(frame == 10) {
|
|
pi_put_8(0, 0, 2);
|
|
}
|
|
|
|
if(frame % 3 == 0) {
|
|
palette_settone(150);
|
|
} else if(frame % 3 == 1) {
|
|
palette_settone(100);
|
|
}
|
|
frame_delay(1);
|
|
}
|
|
graph_showpage(0);
|
|
pi_free(0);
|
|
pi_free(1);
|
|
pi_free(2);
|
|
}
|