- 追加された行はこの色です。
- 削除された行はこの色です。
[[2005/B2]]
int mt;//130detyokkau
sub tr()
{
OnRev(OUT_A); OnFwd(OUT_C);
Wait(mt);
Off(OUT_A+OUT_C);
}
sub tl()
{
OnRev(OUT_C); OnFwd(OUT_A);
Wait(mt);
Off(OUT_A+OUT_C);
}
sub kabu()
{
OnFwd(OUT_A+OUT_C);Wait(30);
repeat(20){
OnFwd(OUT_A+OUT_C);Wait(10);
OnRev(OUT_A);OnFwd(OUT_C);Wait(1);
}
}
sub up()
{
OnRev(OUT_B);Wait(20);
Off(OUT_B);
}
sub down()
{
OnFwd(OUT_B);Wait(40);
Off(OUT_B);
}
task main()
{
OnFwd(OUT_B);Wait(10);
Off(OUT_B);
OnFwd(OUT_A+OUT_C);Wait(200);//1
up();
mt = 210;
tl();
OnFwd(OUT_A+OUT_C);Wait(150);
mt = 150;
tl();
down();
kabu();//2
up();
mt = 200;
tr();
OnFwd(OUT_A+OUT_C);Wait(100);
mt = 80;
tr();
down();
OnFwd(OUT_A+OUT_C);Wait(100);//3
up();
mt = 240;
tl();
OnFwd(OUT_A+OUT_C);Wait(70);
mt = 120;
tl();
down();
OnFwd(OUT_A+OUT_C);Wait(50);//4
up();
mt = 120;
tr();
OnFwd(OUT_A+OUT_C);Wait(70);
mt = 240;
tr();
down();
OnFwd(OUT_A+OUT_C);Wait(120);//5
up();
Off(OUT_A+OUT_C);
}