home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Inside Multimedia 1995 August
/
IMM0895.ISO01.iso
/
magazin
/
optix
/
disk2
/
optxfpac.set
/
SLIDEPIC.OPT
< prev
next >
Wrap
Text File
|
1995-05-02
|
2KB
|
80 lines
def(i)
procedure vscroll(i,xl,yo,xr,yu,s)
rem *** scrollt einen Bildschirmausschnitt vertikal
rem *** flg = Scrollrichtung (0=unten nach oben, 1=oben nach unten)
rem *** xl,yo,xr,yu = Koordinaten der Scrollbox
rem *** s = Schrittweite
locals(k,l)
k := s
l := yu-yo
if i<>0
k := yu-yo
l := s
s := 0-s
endif
copywin(xl,yo,xr,yu)
for i:=k to l step s do
loadsprite(0,i,xl,yo,xr-xl,(yu-yo)-i)
loadsprite(0,0,xl,yu-i,xr-xl,i)
next(i)
return
procedure flip(flg,xl,yo,xr,yu,s)
rem *** erzeugt 'Schachtel'effekt mit Bildschirmausschnitt
rem *** flg = Richtung (0=vertikal, 1=horizontal
rem *** xl,yo,xr,yu = Koordinaten des Bildschirmausschnitts
rem *** s = Schrittweite (Verändert WinPuffer-Inhalt!)
locals(i)
copywin(xl,yo,xr,yu)
if flg=0
for i:=s to yu-yo step s do
loadsprite(0,0,xl,yu-i,xr-xl,i)
loadsprite(0,(yu-yo)-i,xl,yo,xr-xl,(yu-yo)-i)
next(i)
else
for i:=s to xr-xl step s do
loadsprite(0,0,xr-i,yo,i,yu-yo)
loadsprite((xr-xl)-i,0,xl,yo,(xr-xl)-i,yu-yo)
next(i)
endif
return
begin
readsound('capumusi.snd')
startsound
soundloop(on)
readpic('sass1.tga')
setallpal
clearscreen(25)
scrtobuf
readpic('sass1.tga')
viewport(115,115,425,385)
cbox(10,0,0)
viewport(100,100,400,360)
cbox(5,179,0)
plateau(179,8)
setcolor(0)
viewport(101,301,399,359)
cbox(8,192,0)
sysfont(3,1)
printc(252,180,'OPTIX-PicSlide')
setcolor(0)
line(101,301,399,301,0)
viewport(101,101,399,300)
scrtobuf
movebitmap(101,300,101,101,50,0,1)
flip(0,101,101,101+winx,301,2)
movebitmap(101,101,101,300,50,0,1)
scrtobuf
readpic('sass2.tga')
movebitmap(101,300,101,101,50,0,1)
vscroll(0,101,101,101+winx,301,4)
movebitmap(101,101,101,300,50,0,1)
scrtobuf
readpic('sass3.tga')
movebitmap(101,300,101,101,50,0,1)
flip(1,101,101,101+winx,301,10)
vscroll(1,101,101,101+winx,301,4)
movebitmap(101,101,101,300,50,0,1)
pause(1000)
end