Files
TempleOS-Rijn/TempleOS/Accts/TS/TAD/MusicOrgan/good.CPP
T
2018-09-08 21:45:52 +02:00

52 lines
1.1 KiB
C++

//8 has graphics
$SP,"<1>",1$
$SP,"<2>",2$
F64 t0=tMBeat;
U0 DrawIt(CTask *,CDC *dc)
{
F64 dt=tMBeat-t0,tt;
U8 *temps;
if (dt<16.0)
tt=0;
else if (dt<18.0)
tt=((dt-16)/2)%1;
else
tt=1.0;
temps=SpriteInterpolate($IB,"<1>",1$,$IB,"<2>",2$,tt);
SpritePlot3(dc,180,40,0,temps);
Free(temps);
}
U0 Song()
{
SettingsPush; //See $LK,"SettingsPush","MN:SettingsPush"$
Fs->draw_it=&DrawIt;
Fs->task_end_cb=&SndTaskEndCB;
music_tempo=3.0;
try {
while (!ScanKey) {
t0=tMBeat;
DocClear;
Play("3qFeRRqAeRAqGDetBACeCB",
"God \0 \0 \0is \0 \0a \0good \0God. \0(Thank \0 \0 \0God!!)\n\0 \0");
Play("qFeRRqAeRAqGDetBACeCB",
"God \0 \0 \0is \0 \0a \0good \0God. \0(Thank \0 \0 \0God!!)\n\0 \0");
Play("qGsCECEeC2GqR3FeEDqEF",
" \0 \0 \0 \0 \0 \0 \0 \0He \0is \0a \0good \0God.\n\0");
Play("GsCECEeC2GqR3FeEDqEF",
" \0 \0 \0 \0 \0 \0 \0 \0He \0is \0a \0good \0God.\n\0");
}
} catch
CatchAll;
SettingsPop;
}
Song;
3 DKQYa3 EýÿÿÿKT\býÿÿÿ