home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Inside Multimedia 1995 August
/
IMM0895.ISO01.iso
/
magazin
/
optix
/
disk1
/
optxppac.set
/
FRAMROTA.OPT
< prev
next >
Wrap
Text File
|
1995-05-05
|
5KB
|
270 lines
DEF(I)
DEF(J)
DEF(k)
DEF(x)
DEF(y)
procedure fbox1(xl,yo,xr,yu,cnt,col,mod,verz)
locals(pb)
pb:=(yu-yo)/cnt-1
do
viewport(xl,yo,xr,yo+pb)
inc(yo,pb)
cbox(mod,col,verz)
inc(col,1)
loop(cnt)
return
PROCEDURE fbox2(xl,yo,xr,yu,cnt,col,mod,verz)
locals(pi)
INC(col,cnt)
pi:=((yu-yo)/cnt)-1
DO
yu:=yo
INC(yu,pi)
VIEWPORT(xl,yo,xr,yu)
INC(yo,pi)
CBOX(mod,col,verz)
DEC(col,1)
LOOP(cnt)
RETURN
procedure ball(xm,ym,col,rad)
do
disk(xm,ym,rad,col)
inc(col,1)
loop(rad)
return
procedure ring(xm,ym,col,rad,dick)
locals(pb)
pb:=dick/2
dick:=dick/2-1
do
disk(xm,ym,rad,col)
inc(col,1)
dec(rad,1)
loop(dick)
dick:=pb
dec(dick,1)
dec(col,1)
do
disk(xm,ym,rad,col)
dec(col,1)
dec(rad,1)
loop(dick)
return
procedure frame(xl,yo,xr,yu,col,dick)
locals(i,j)
viewport(xl,yo,xr,yu)
for i:=1 to dick/2 do
setcolor(col+i-1)
rectangle
incviewport
next(i)
if (dick/2)*2<>dick
incviewport
endif
for j:=1 to dick/2 do
setcolor(col+i-j)
rectangle
incviewport
next(j)
return
begin
font(0)
sysfont(3,1)
readsound('capumusi.snd')
startsound
clearscreen(0)
gradation(240,255,0,0,0,40,40,63)
frame(102,22,537,457,242,20)
gradation(224,239,0,0,0,20,30,53)
frame(122,42,517,437,226,20)
gradation(208,223,0,0,0,60,60,43)
frame(142,62,497,417,210,20)
gradation(192,207,0,0,0,60,50,13)
frame(162,82,477,397,194,20)
gradation(176,191,0,0,0,20,50,50)
frame(182,102,457,377,178,20)
gradation(160,175,0,0,0,60,40,40)
frame(202,122,437,357,162,20)
gradation(144,159,0,0,0,20,63,20)
frame(222,142,417,337,146,20)
gradation(128,143,0,0,0,10,63,50)
frame(242,162,397,317,130,20)
gradation(112,127,0,0,0,63,10,10)
frame(262,182,377,297,114,20)
gradation(96,111,0,0,0,40,13,60)
frame(282,202,357,277,98,20)
gradation(80,95,0,0,0,10,33,63)
frame(302,222,337,257,82,20)
for k:=15 downto 5 do
for i:=0 to 15 do
rotsubpal(k)
pause(8)
next(i)
next(k)
for k:=5 to 15 do
for i:=0 to 15 do
rotsubpal(k)
pause(8)
next(i)
next(k)
startsound
pause(1000)
viewport(0,0,xmax,ymax)
cbox(5,8,100)
setallpal
gradation(240,255,0,0,0,33,55,15)
gradation(224,239,0,0,0,60,20,50)
gradation(192,223,0,0,0,20,20,60)
fbox1(20,20,320,470,30,193,0,0)
fbox2(320,20,620,470,30,193,0,0)
frame(56,56,582,424,200,48)
fbox2(156,160,215,270,10,224,4,2)
frame(128,128,515,355,227,20)
frame(100,100,540,380,242,26)
frame(156,162,215,255,242,26)
frame(390,210,428,250,242,26)
j:=5
x:=160
do
disk(x,324,10,254)
pause(80)
ball(x,324,242,13)
inc(x,30)
loop(j)
j:=5
do
dec(x,30)
disk(x,324,10,254)
pause(80)
ball(x,324,242,13)
loop(j)
sync(8160)
startsound
ring(400,242,226,110,22)
setcolor(14)
printc(400,226,'Hauptsache, es')
printc(400,246,'ist schön bunt und')
printc(400,266,'es passiert was!!!')
printat(65,60,'Bunte Bilder machen sie alle!')
j:=3
do
i:=16
do
rotsubpal(12)
pause(30)
loop(i)
i:=16
do
rotsubpal(13)
pause(30)
loop(i)
loop(j)
i:=2
do
gradation(240,255,0,0,0,43,25,35)
pause(200)
gradation(240,255,0,0,0,63,45,5)
pause(200)
gradation(240,255,0,0,0,33,15,55)
pause(200)
gradation(240,255,0,0,0,20,65,65)
pause(200)
gradation(240,255,0,0,0,63,20,20)
pause(200)
loop(i)
readsound('typewrit.snd')
for i:=0 to 3 do
for j:=0 to 15 do
setrgbcolor(240+j,j*4-1,0,63)
viewport(i*160+j*10,0,i*160+j*10+9,9)
cbox(0,240+j,0)
viewport(629,i*120+j*8,639,i*120+j*8+7)
cbox(0,240+j,0)
viewport(i*160+j*10,469,i*160+j*10+9,479)
cbox(0,255-j,0)
viewport(0,i*120+j*8,9,i*120+j*8+7)
cbox(0,255-j,0)
next(j)
next(i)
for i:=0 to 159 do
startsound
rotsubpal(15)
pause((i/8+1))
next(i)
for i:=0 to 3 do
for j:=0 to 15 do
setrgbcolor(240+j,j*4-1,0,63)
viewport(i*160+j*10,0,i*160+j*10+9,9)
cbox(0,255-j,0)
viewport(629,i*120+j*8,639,i*120+j*8+7)
cbox(0,255-j,0)
viewport(i*160+j*10,469,i*160+j*10+9,479)
cbox(0,240+j,0)
viewport(0,i*120+j*8,9,i*120+j*8+7)
cbox(0,240+j,0)
next(j)
next(i)
for i:=159 downto 0 do
startsound
rotsubpal(15)
pause((i/8+1))
next(i)
pause(0)
end