home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
526-550
/
apd527
/
war_movie
/
autoexec.amos
/
autoexec.amosSourceCode
Wrap
AMOS Source Code
|
1989-08-15
|
5KB
|
167 lines
Screen Open 0,320,256,32,Lowres : Cls 0
Fade 3 : Wait 3*15
Dim X$(51),X(51),Y(51),B(8)
B(1)=5 : B(2)=6 : B(3)=7 : B(4)=8 : B(5)=6 : B(6)=9 : B(7)=10 : B(8)=11
Global X$(),X(),Y(),SCNT,CNT,SC$,SCRL$,B()
1 T
DEMO
Wait 12050 : Goto 1
Rem-----------------------------------------------------
Procedure T
Fade 5 : Music Off : Erase 3
Load "war_and_peace.abk"
Load Iff "font",0 : Screen To Back 0 : Spack 0 To 6 : Cls 0 : Screen To Front 0
Hide On
MESSAGE
SETUP
MAKE_FONT
Music 1
Screen Open 0,320,200,32,Lowres : Flash Off : Auto View Off : Hide
Load Iff "sunset.abk"
For A=0 To 191
Get Bob A+1,0,A To 320,A+1
Next A : No Mask : Cls 0 : View
For A=1 To 191
Inc B
For C=B To 200
Paste Bob 0,C,A
Next C
Next A
Erase 1
Screen 1
Repeat
Scroll 1
MOVE_TEXT
Wait Vbl
Until Mouse Click>0
Screen 1 : Fade 5 : Screen 0 : Fade 5 : Wait 100
End Proc
Procedure DEMO
Screen 1 : Fade 5 : Wait 5*15 : Screen Close 1
Load "movie1.abk" : ANI : Double Buffer
Repeat : Until Mouse Click>0
Amal Off : Fade 5 : Cls 0 : Load "movie2.abk" : Amal On : ANI2
Repeat : Until Mouse Click>0
Amal Off : Fade 5 : Cls 0 : Load "movie3.abk" : Amal On : ANI3
Repeat : Until Mouse Click>0
DEMO_OVER
End Proc
Procedure SETUP
SCRL$="0123456789abcdefghijklmnopqrstuvwxyz@,!.:?/+-()#{} "
SCNT=1
CNT=31
Unpack 6 To 2 : Screen To Back 2 : Screen Hide 2
Screen Open 1,380,33,16,Lowres
Def Scroll 1,1,0 To 380,33,-8,0
Screen Display 1,115,270,359,32
Curs Off : Cls 0 : Get Palette 2 : Flash Off
End Proc
Procedure MESSAGE
SC$="well welcome to the new war and peace demo (new because it is the first one!!) "
SC$=SC$+"i must send some greets to : the shadow dancer, michael,chip and dib....."
SC$=SC$+"well i shall now tell you how to get through this demo, so listen carefully dude........right "
SC$=SC$+"well all you have to do is smash the left squeaker button during the animations and it will go "
SC$=SC$+"to the next animation etc... please note that the demo will loop back to this scrolly after some time at the end sequence. "
SC$=SC$+".... michael have you got any ideas for a demo??? well if you want me to animate some pictures then just tell me and i will do my best. "
SC$=SC$+"....right hmmmmm, oh yeah i will be starting the topgun demo soon so hang tight for that one....... "
SC$=SC$+"this demo was started on the 28/9/91 and was finished on the 11/10/91 on a friday night...... well ummm ahhhh ummmm "
SC$=SC$+"this has to be the shortest scrolltext i have ever written probably because writting it is boring me to death at the moment. "
SC$=SC$+"well i leave you with these final immortal words..... till later dudes....... now looping (he he he)............"
End Proc
Procedure MAKE_FONT
Screen 1
For F=1 To 51
Read X$(F),X(F),Y(F)
Next F
Data "0",0,0
Data "1",32,0
Data "2",64,0
Data "3",96,0
Data "4",128,0
Data "5",160,0
Data "6",192,0
Data "7",224,0
Data "8",256,0
Data "9",288,0
Data "A",0,32
Data "B",32,32
Data "C",64,32
Data "D",96,32
Data "E",128,32
Data "F",160,32
Data "G",192,32
Data "H",224,32
Data "I",256,32
Data "J",288,32
Data "K",0,64
Data "L",32,64
Data "M",64,64
Data "N",96,64
Data "O",128,64
Data "P",160,64
Data "Q",192,64
Data "R",224,64
Data "S",256,64
Data "T",288,64
Data "U",0,96
Data "V",32,96
Data "W",64,96
Data "X",96,96
Data "Y",128,96
Data "Z",160,96
Data "@",192,96
Data ",",224,96
Data "!",256,96
Data ".",288,96
Data ":",0,128
Data "?",32,128
Data "/",64,128
Data "+",96,128
Data "-",128,128
Data "(",160,128
Data ")",192,128
Data "#",224,128
Data "{",256,128
Data "}",288,128
Data " ",288,223
End Proc
Procedure NEW_CHARACTER
E$=Mid$(SC$,SCNT,1)
E=Instr(SCRL$,E$)
Screen Copy 2,X(E),Y(E),X(E)+31,Y(E)+31 To 1,329,0
End Proc
Procedure DEMO_OVER
For X=63 To 0 Step -1 : Mvolume X : Wait 2 : Next X : Wait 8 : Erase 3
Fade 5 : Wait 5*15 : Amal Off : Fade 5 : Wait 5*15 : Erase 1
Load "end.abk" : Default : Cls 0 : Hide On : Music 1 : Mvolume 63 : Wait 50
Load Iff "the_end",0 : Screen To Front 0 : Get Palette(0)
End Proc
Procedure ANI
Channel 2 To Bob 2
Screen 0
Cls 0 : Get Sprite Palette
Bob 2,105,60,1
Anim 2,"(1,5)(2,5)(3,5)(4,5)(5,5)(6,5)(7,5)(8,5)(9,5)(10,5)(11,5)(12,5)(13,5)(14,5)(15,5)(16,5)(17,5)(18,5)L"
Anim On
End Proc
Procedure ANI2
Channel 2 To Bob 2
Screen 0
Cls 0 : Get Sprite Palette
Bob 2,105,60,1
Anim 2,"(1,8)(2,8)(3,8)(4,8)(6,8)(7,8)(8,8)(9,8)(10,8)(11,8)(12,8)(13,8)(14,8)(15,8)L"
Anim On
End Proc
Procedure ANI3
Channel 2 To Bob 2
Screen 0
Cls 0 : Get Sprite Palette
Bob 2,105,60,1
Anim 2,"(1,12)(2,12)(3,12)(4,12)(6,12)(7,12)(8,12)L"
Anim On
End Proc
Procedure MOVE_TEXT
Add CNT,4
If CNT>15 Then NEW_CHARACTER : CNT=0 : Inc SCNT
If SCNT>Len(SC$) Then SCNT=1
End Proc