54 lines
1.7 KiB
C++
54 lines
1.7 KiB
C++
//9 has graphics
|
||
|
||
|
||
|
||
|
||
$SP,"<1>",BI=1$
|
||
|
||
|
||
F64 t0=Beat;
|
||
|
||
U0 DrawIt(CTask *,CDC *dc)
|
||
{
|
||
I64 i,x,y;
|
||
x=30+200*(Saw(Beat-t0,8.0));
|
||
y=40;
|
||
Sprite3(dc,x,y,0,$IB,"<1>",BI=1$);
|
||
dc->color=YELLOW;
|
||
for (i=0;i<5;i++)
|
||
GrLine(dc,x,y,x+RandI16%100,y+RandI16%50+50);
|
||
dc->color=WHITE;
|
||
for (i=0;i<5;i++)
|
||
GrLine(dc,x,y,x+RandI16%100,y+RandI16%50+50);
|
||
}
|
||
|
||
U0 Song()
|
||
{
|
||
SettingsPush; //See $LK,"SettingsPush",A="MN:SettingsPush"$
|
||
Fs->text_attr=LTCYAN<<4+BLACK;
|
||
Fs->draw_it=&DrawIt;
|
||
Fs->task_end_cb=&SndTaskEndCB;
|
||
|
||
music.tempo=2.5;
|
||
try {
|
||
"$$BG+H,LTCYAN$$$$FG+H,BLACK$$";
|
||
while (!ScanKey) {
|
||
t0=Beat;
|
||
DocClear;
|
||
Play("3qBeB2GqG3DBeA2GqR3etGED",
|
||
"Sees \0the \0 \0end \0from \0the \0start.\n\0 \0 \0 \0 \0 \0");
|
||
Play("qBeB2GqG3DBeA2GqR3etGED",
|
||
"Got \0Heav\0 \0en \0down \0to \0art.\n\0 \0 \0 \0 \0When \0");
|
||
Play("eB2G3qGRsFEFECBCB2qGG3etDRD",
|
||
"filled \0with \0doubt.\n\0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0It'\0 \0ll \0");
|
||
Play("eB2G3qGRsFEFECBCB2qGG3etDRD",
|
||
"all \0work \0out.\n\0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0");
|
||
}
|
||
} catch
|
||
PutExcept;
|
||
SettingsPop;
|
||
}
|
||
|
||
Song;
|
||
|