home *** CD-ROM | disk | FTP | other *** search
- (null) expression rocket, swirl,minplus,zeromin,plusplus;
- integer x, y, xinc, yinc;
- let string char := "x";
-
- minplus :=
- {
- x := x-1;
- y := y+1;
- tab(x,y);
- write(char);
- };
- zeromin :=
- {
- y := y-1;
- tab(x,y);
- write(char);
- };
- plusplus :=
- {
- x := x+1;
- y := y+1;
- tab(x,y);
- write(char);
- };
-
-
- swirl :=
- {
- run(minplus);
- run(minplus);
- run(zeromin);
- run(zeromin);
- run(zeromin);
- run(zeromin);
- run(plusplus);
- run(plusplus);
- run(plusplus);
- run(plusplus);
- run(zeromin);
- run(zeromin);
- run(zeromin);
- run(zeromin);
- run(minplus);
- run(minplus);
- };
-
- rocket :=
- {
- x:=5;
- y:=27;
- yinc := -1;
- loop
- exiton(x=75);
- cls();
- beep();
- run(swirl);
- x:= x+2;
- if y=12 then
- yinc := 1;
- endif;
- y:= y + yinc;
- endloop;
- };
-
- run(rocket);
- cls();
-