home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Inside Multimedia 1995 August
/
IMM0895.ISO01.iso
/
magazin
/
optix
/
disk1
/
optxppac.set
/
BEAMING.OPT
< prev
next >
Wrap
Text File
|
1995-05-05
|
3KB
|
153 lines
def(i)
def(j)
def(k)
def(l)
procedure vstretch(flg,qxl,qyo,qxr,qyu,zxl,zyo,p)
rem ***
rem *** erzeugt einen 'Dehnungseffekt' mit einem Teil des
rem *** aktuellen WIN-Puffers.
rem *** Ggfls. muß vor Aufruf KEY(off) gesetzt werden.
rem ***
rem *** flg : Richtungsflag (0 = vert. / <>0 = horiz.)
rem *** (in horizontaler Richtung kann der Effekt sehr
rem *** langwierig werden.)
rem *** qxl : linke Quell-X-Koord. im Win-Puffer
rem *** qyo : obere Quell-Y-Koord. im Win-Puffer
rem *** qxr : rechte Quell-X-Koord. im Win-Puffer
rem *** qyu : untere Quell-X-Koord. im Win-Puffer
rem *** zxl : linke X-Koord. des Zielrechtecks
rem *** zyo : obere Y-Koord. des Zielrechtecks
rem *** p : Verzögerungsfaktor
rem ***
locals(i,j,k,l,m)
if flg=0
l:=qyu-qyo+1
m:=qxr-qxl+1
else
l:=qxr-qxl+1
m:=qyu-qyo+1
endif
for i:=0 to l/2-1 do
k:=(l/2*100)/(i+1)
for j:=0 to i do
if flg=0
loadsprite(qxl,qyo+j*k/100,zxl,zyo+l/2-i+j,m,1)
loadsprite(qxl,qyo+l-j*k/100-1,zxl,zyo+l/2+i-j+1,m,1)
else
loadsprite(qxl+j*k/100,qyo,zxl+l/2-i+j,zyo,1,m)
loadsprite(qxl+l-j*k/100-1,qyo,zxl+l/2+i-j+1,zyo,1,m)
endif
next(j)
wait(p+1)
next(i)
loadsprite(qxl,qyo,zxl,zyo,m,l)
return
begin
readsound('boing.wav')
readpic('optix256.tga')
fadeout(0)
clearscreen(45)
fadein(1)
readfont(1,'hel15x29.fnt')
font(1)
textcofs(3)
for i:=0 to 3 do
setrgbcolor(0,0,0,0)
pause(200)
setrgbcolor(28,24,27,0)
pause(200)
next(i)
textcolor(0)
clearscreen(45)
printat(470,45,'SUB-LOOPS')
printat(470,75,'SHRINKING')
printat(470,105,'BEAMING')
keycol(45)
key(on)
copywin(470,45,620,200)
for i:=-1 to 1 do
for j:=-1 to 1 do
loadwin(470+i,45+j,0,0)
next(j)
next(i)
copywin(469,44,469+winx+2,44+winy+2)
clearscreen(45)
setrgbcolor(0,0,0,0)
key(off)
startsound
vstretch(0,0,0,winx,29,469,43,0)
sync(500)
startsound
vstretch(0,0,30,winx,59,469,73,0)
sync(500)
startsound
vstretch(0,0,60,winx,89,469,103,0)
key(on)
textcolor(200)
printat(470,44,'SUB-LOOPS')
printat(470,74,'SHRINKING')
printat(470,104,'BEAMING')
copywin(469,43,469+winx+2,44+winy+2)
for i:=4 downto 0 do
loadwin(469+i,44+i,0,0)
next(i)
keycol(227)
scrtobuf
readpic('optix256.tga')
loadwin(50,30,23,0)
copywin(50,30,50+winx/5,30+winy/5)
key(off)
vstretch(0,0,0,winx,winy,50,30,0)
readpic('optix256.tga')
keycol(227)
key(on)
viewport(50,30,160,160)
wait(1000)
restorebox(0,0)
readsound('huii.snd')
startsound
setcolor(200)
line(100,100,550,260,50)
setcolor(45)
line(100,100,550,260,50)
readsound('boing.wav')
viewport(500,200,500+winx/2,200+winy/2)
for i:=1 to 9 do
restorebox(0,0)
loadwin(500,200,20+i,0)
next(i)
for k:=0 to 3 do
for j:=0 to 4 do
startsound
for i:=29 downto 23 do
loadwin(20+j*85,20+k*110,i,0)
next(i)
next(j)
next(k)
loadwin(40,40,0,0)
pause(5000)
fadeout(1)
end