home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
sourcecode
/
demos
/
pink_panther_demo.amos
/
pink_panther_demo.amosSourceCode
< prev
Wrap
AMOS Source Code
|
1988-03-09
|
4KB
|
137 lines
' The Pink Panther Demo v1.0
'
' by David Brown (c) 1991
'
Rem do this as AMOS tells me to !
Screen Open 0,320,200,16,Lowres
Curs Off : Flash Off : Hide : Cls 0
'
Screen Open 1,320,256,8,Lowres
Curs Off : Flash Off : Hide
Unpack 1 To 1
Wait 250 : Fade 4 : Wait 50
Screen Hide 1
Set Rainbow 0,0,32,"(1,1,1)","",""
Set Rainbow 1,0,32,"(8,1,8)","(1,1,8)",""
Set Rainbow 2,0,4097,"","",""
'
Rem * Created with RAINBOW WARRIOR - Amos Copper Generator *
Set Rainbow 3,0,34,"","",""
Rainbow 3,0,267,34
Restore RDATA
For C=0 To 33 : Read CVA : Rain(3,C)=CVA : Next C
RDATA:
Data $0,$0,$0,$0,$0,$0,$400,$500
Data $600,$701,$802,$903,$A04,$B05,$C06,$D07
Data $E08,$F19,$F19,$E08,$D07,$C06,$B05,$A04
Data $903,$802,$701,$600,$500,$400,$300,$200
Data $300,$200,$300,$200,$0,$0,$0,$0
R=3600
For Y=1 To 256 Step 2
Wait Vbl
Rain(2,Y)=(Y/2)+R
Rain(2,Y+1)=Y/2+R
Next Y
'View
' rem ************* scrolling text goes here ****************
SC$=" Hi!! Welcome to my first Demo-style program written using AMOS v1.21 (c)1990 Mandarin/Jawx |"
SC$=SC$+" by David R P Brown | Yes! I know it's hard to read the middle text - that's the idea. "
SC$=SC$+"The Demo took me 2 weeks to write, the music was composed on MED 3.00 with the kind help of a friend Caroline Welch. "
SC$=SC$+"The samples were taken from several of the Pink Panther films - using Master Sound V1.1. "
SC$=SC$+"I wanted to use a 2D starfield but it was too slow.. Maybe next time.. "
SC$=SC$+"I've included some great samples - they certainly add a special "
SC$=SC$+"something to an otherwise basic demo (get it?!) I hope you enjoy my little offering & until I return with "
SC$=SC$+"my next 'Pink' Demo I shall bid you farewell ..... Good Bye .... The Pink Panther Demo (c)David Brown 1991|"
SC$=SC$+" Press the Left mouse button to Quit Demo| "
LSC=Len(SC$)
Rem *********Logo and Graphics screen**********
'
Screen Open 1,352,259,16,Lowres : Rem Main Scrn
Palette 0,$F00,$E00,$D00,$C00,$DBB,$FEE,$200,$411,$611,$722,$922,$A33,$C33,$E33,$F44
Flash Off : Cls 0 : Get Palette 0
'
Def Scroll 1,1,239 To 348,247,-2,0
Screen Open 3,380,57,16,Lowres : Cls 0
Palette 0,$F00,$E00,$D00,$C00,$DBB,$FEE,$200,$411,$611,$722,$922,$A33,$C33,$E33,$F44
Flash Off : Cls 0
Rainbow 0,1,140,16
Rainbow 1,1,140,16
Rainbow 2,1,50,100
'
Rem Set up AMAL strings for moving rainbows and logo
A$="Begin: Move 0,120,50 ; Move 0,-120,100 ; Jump Begin"
B$="Begin: Move 0,120,150 ; Move 0,-120,175 ; Jump Begin"
Channel 5 To Rainbow 0
Channel 6 To Rainbow 1
Amal 5,A$ : Amal 6,B$
Amal On
'View
Y$="Loop: Move 128,0,50; Move -128,0,150 ;Jump Loop"
Z$="Loop: Move 80,0,30 ; Move -80,0,30 ; Jump Loop"
Channel 1 To Screen Offset 3
Channel 3 To Rainbow 2
Amal 1,Z$
Amal 3,Y$
Screen Display 3,158,63,296,
Screen 1 : Gr Writing 0
'
Rem ************* TEXT FOR TOP OF SCREEN *************
Screen 3 : Gr Writing 0
Ink 7,0 : Text 95,33,"The Pink Panther Demo"
Ink 6,0 : Text 96,32,"The Pink Panther Demo"
Ink 6,0 : Text 96,46,"Written using AMOS v1.21"
Ink 6,0 : Text 96,56,"(C) 1990 JAWX / MANDARIN"
Screen 1
'
Rem ************* TEXT FOR MIDDLE OF SCREEN *************
Colour 2,$0 : Ink 2,0
Text 10,125," T H E P I N K P A N T H E R D E M O"
Text 10,135," (c) 1991 David Brown"
Text 10,160," MED 3.00 Used to compose Song"
Text 10,170," MASTERSOUND V1.1 used to grab samples "
Text 10,190," **** With Thanks to ****"
Text 10,200," My Brother For Buying me AMOS"
Text 10,210," My Mum for patience & great coffees"
Text 10,220," Caroline Welch for her musical Help!"
'
Rem ***************** SWITCH ON MUSIC & AMAL *************
View
Music 1 : Tempo 12 : Led Off
Amal On
'
Rem *********** SCROLL TEXT ROUTINE ***************
Colour 1,$FFF : Ink 1,0
S=0 : CNT=0
Do
SRLTXT:
Wait Vbl : Scroll 1
If Mouse Click Then Gosub DEMO_STOP
Inc S
If S>4
S=1
Add CNT,1,1 To LSC
Gosub NXTLET
End If
Loop
'
NXTLET:
E$=Mid$(SC$,CNT,1)
If E$="|" Then Wait 50 : E$=""
Text 334,245,E$
Return
'
Rem *********End of Demo***********
DEMO_STOP:
Amal Off : Fade 4 : Wait 50
Screen 0 : Fade 3 : Screen 1 : Fade 4 : Screen 3 : Fade 3
Rainbow 0,0,0,0
Rainbow 1,0,0,0
Rainbow 2,0,0,0
Rainbow 3,0,0,0
For MV=63 To 0 Step -1 : Wait 2 : Mvolume MV : Next MV
Curs Off : Flash Off : Hide
Unpack 1 To 1
Wait 250 : Fade 4 : Wait 50
'End
System
'