home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
401-425
/
apd410
/
intros.amos
/
intros.amosSourceCode
< prev
next >
Wrap
AMOS Source Code
|
1992-05-17
|
6KB
|
241 lines
'ASSEMBLER STYLE INTRO--KNOCK DOWN ALL THE PEOPLE THAT KNOCK AMOS!--
'STORM 1992...in the intro are things like
'multi-layered parallax scrolling bobs
'hidden rasterlines
'rasterlines that respond to music
'a very fast sinus scroll bar
'a very small chip tune tiny!(mod.purple shades)
'7-8 sinus/cosinus spinning bobs
'over 35 diffrent bobs on screen!!!
'a smooth opening and closing of the screen using rasterlines!.
'
'okay so some are easy to implement but know one does!
'amos can present programs stylishly so do it now add a touch of class!
'ermm... if a part of the code intrests you then use it but please
'all i ask is that you mention me somewhere in your credits screens!
'if you have a demo/intro that you would like put on a later disk
'then send it into me now!..(non-compiled) to the address in the docs!
'Now run this baby!
'
'starfields
'
'
STARFIELDS
Screen Close 0 : Screen Close 2
Rainbow Del 2
Screen 1
For I=27 To 34
Bob Off I
Next I
Rain(1,240)=0 : Rain(1,244)=0 : Rain(1,248)=0 : Rain(1,252)=0
JC=227 : CTQ=63
For WE=60 To 144 Step 1
Add JC,-1 : Add CTQ,-1
Rain(1,WE)=$909
Rain(1,JC)=$909
Screen Display 1,,WE-20,,
Wait 2
View
Rain(1,WE-1)=$0
Rain(1,JC+1)=$0
If CTQ>0 Then Volume CTQ
Next WE
Rainbow Del 1
View
Screen 1
Fade 8
Wait 75
Screen Close 1
Music Off
End
Procedure STARFIELDS
Screen Open 2,340,16,8,Lowres
Screen Display 2,140,40,320,9
Screen 2 : Paper 0 : Curs Off : Cls 0
'Break Off
Def Scroll 1,0,0 To 340,10,-8,0
Screen Open 0,320,256,8,Lowres
Screen Display 0,130,90,320,164
Screen Hide 0
Double Buffer
Curs Off : Flash Off : Cls 0 : Hide On
Dim XPOS(30),YPOS(30)
Dim CTS(16)
AD$=" HI THERE!!!..THIS IS STORM WELCOMING YOU TO A NEW CONCEPT"
AD$=AD$+" ---PICK n MIX @ 1992 THE IDEA OF THESE DISKS IS TO PROVIDE"
AD$=AD$+" A DISK WHICH IS AIMED MORE TOWARDS THE ADVANCED AMOSERS! FOR"
AD$=AD$+" FOR MORE INFO READ THE DOCS PROVIDED.... WHAT DO YOU THINK OF"
AD$=AD$+" THIS COOL INTRO WRITTEN IN ONE DAY SOLLEY ON AMOS! NEAT...JUST"
AD$=AD$+" LIKE THE ASSEMBLER GUYS DO IT. EVEN THE MUSIC IS CHIP MUSIC!..ANYWAY"
AD$=AD$+" GOT TO GO!..HAVE FUN AND SEE YA LATER.... RESTART >>>>>> "
ADO=Len(AD$)
Get Sprite Palette
Cls 0 : Pen 1 : Paper 0
Gosub WASTE
Gosub DRIP
Synchro Off
'RAYNBOWS
RT=45 : WI=-1
'
' BOB LAYER 1 THE BIG SPRITE
'
For I=0 To 7
Set Bob I,0,,
Bob I,XPOS(I),YPOS(I),1
Channel I To Bob I
B$="Loop: F R0="+Str$(XPOS(I))+" T 320;L X=X+1 ; N R0; L X=0; F R0=0 T "+Str$(XPOS(I))+" Let X=X+1 N R0"
B$=B$+"Jump Loop"
Amal I,B$
Next I
'
' BOB LAYER 2 THE MIDDLE SPRITE
'
For I=8 To 15
Set Bob I,0,,
Bob I,XPOS(I),YPOS(I),2
Channel I To Bob I
B$="Loop: F R0="+Str$(XPOS(I))+" T 320;L X=X+1 ; P N R0; L X=0; F R0=0 T "+Str$(XPOS(I))+" Let X=X+1 P N R0"
B$=B$+"Jump Loop"
Amal I,B$
Next I
'
' BOB LAYER 3 THE SMALL SPRITE
'
For I=16 To 23
Set Bob I,0,,
Bob I,XPOS(I),YPOS(I),3
Channel I To Bob I
B$="Loop: F R0="+Str$(XPOS(I))+" T 320;L X=X+1 ; P P N R0; L X=20; F R0=0 T "+Str$(XPOS(I))+" Let X=X+1 P P N R0"
B$=B$+"Jump Loop"
Amal I,B$
Next I
FRED:
Amal On
Autoback 2
Synchro On
RAYNB0WS
View
Screen Show 0
Screen 2
Flash 5,"(121,4)(242,4)(464,4)(686,4)(8a8,4)(686,4)(464,4)(242,4)(121,2)(001,4)"
Pen 5
Screen To Front 2
KLO=0 : ADX=27
'
'main loop
'
Do
'
'scroll and shift screen with a sinus calulation..sinch!
'and wait vbl s to slow things down (smoother)
'
Add CTS2,1
Add QP,1 : Add Y,1
ADO$=Mid$(AD$,QP,1)
If QP=ADO Then QP=0
If X=360 Then X=0
Locate 39,0 : Pen 5 : Print ADO$
E=70*Sin(Y*19)+120
'Wait Vbl
Screen Display 2,140,40+E,320,9
Scroll 1 :
'Wait Vbl
If Mouse Key=1 Then Pop Proc
'
'check music and rainbows
'
DJ=Vumeter(2) : DJ2=Vumeter(1) : DJ3=Vumeter(0) : DJ4=Vumeter(3)
If DJ=>1 Then Rain(1,240)=$2B : Else Rain(1,240)=4
If DJ2=>1 Then Rain(1,244)=$2B : Else Rain(1,244)=4
If DJ3=>1 Then Rain(1,248)=$2B : Else Rain(1,248)=4
If DJ4=>1 Then Rain(1,252)=$2B : Else Rain(1,252)=4
Rain(1,60)=CTS(CTS2)
Rain(1,226)=CTS(CTS2)
If CTS2=15 Then CTS2=0
'
'rotate small bobs
'
Screen 1
Add KLO,1 : Add ADX,1
If KLO=700 Then KLO=0
If ADX=35 Then ADX=27
XS=140*Sin(KLO*19)+150
YS=17*Cos(KLO*19)+15
Bob ADX,XS,YS,3
Screen 2
Loop
'
' POSITIONS FOR BOBS ON SCREEN 0
'
WASTE:
Restore SPRPOS
For COORDS=0 To 23
Read XPOS(COORDS),YPOS(COORDS)
Next COORDS
Return
SPRPOS:
Data 0,0,32,132,148,48,218,80,263,52,310,140,78,55,190,90
Data 15,15,44,130,310,140,70,50,198,89,165,77,260,110,100,99
Data 0,0,32,132,148,48,218,80,263,52,310,140,78,55,190,90
'
DRIP:
Restore C0LOURSET
For PLOP=0 To 15
Read CTS(PLOP)
Next PLOP
Return
C0LOURSET:
Data $101,$404,$606,$808,$909,$A0A,$D0D,$F0F
Data $F0F,$D0D,$A0A,$909,$808,$606,$404,$101
End Proc
Procedure RAYNB0WS
Music 1 : Volume 0
Screen Open 1,320,80,16,LORES
Screen Display 1,130,140,640,47
Double Buffer
Curs Off : Flash Off : Paper 0 : Pen 7 : Cls 0
Palette $0,$FFF,$777,$222,$333,$444,$7,$5,$5
Ink 1,0
Locate 10,4 : Print " pick n mix "
Synchro Off
Paste Bob 100,15,11
Bob 25,10,10,5
Channel 25 To Bob 25
Amal 25,"Anim 0,(5,4)(6,4)(7,4)(8,4)(9,4)(10,4)(9,4)(8,4)(7,4)(6,4)"
Bob 26,300,10,5
Channel 26 To Bob 26
Amal 26,"Anim 0,(5,4)(6,4)(7,4)(8,4)(9,4)(10,4)(9,4)(8,4)(7,4)(6,4)"
Synchro On
Amal On
Set Rainbow 1,0,280,"","",""
Rainbow 1,0,0,280
For C=0 To 279
Rain(1,C)=0
Next C
JC=145 : CTQ=0
For WE=140 To 60 Step -1
Add JC,1 : Add CTQ,1
Rain(1,WE)=$909
Rain(1,JC)=$909
Screen Display 1,,WE-20,,
View
Rain(1,WE+1)=$0
Rain(1,JC-1)=$0
If CTQ<63 Then Volume CTQ
Next WE
Set Rainbow 2,8,50,"(4,2,16)","",""
Rainbow 2,50,20,50
For UI=0 To 49
Rain(2,UI)=0
Next UI
For T=0 To 16
Rain(2,21+T)=T
Next T
Rain(2,37)=$B
Rain(2,38)=$7
Rain(2,39)=$6
Rain(2,40)=$5
Rain(2,41)=$4
Rain(2,42)=$3
Rain(2,43)=$2
End Proc