home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
501-525
/
apd521
/
showall-v2.amos
/
showall-v2.amosSourceCode
< prev
next >
Wrap
AMOS Source Code
|
1991-07-10
|
6KB
|
210 lines
Rem ****************************
Rem * *
Rem * Load All v2.0 *
Rem * by *
Rem * Murray Jones *
Rem * *
Rem ****************************
Rem
Rem
Close Workbench
Change Mouse 2
Screen Open 0,320,256,16,Lowres
Screen Display 0,130,40,320,256
Screen Open 3,640,40,4,Hires
Screen Display 3,130,260,640,40
Colour 1,$555 : Colour 2,$F11 : Colour 3,$777
Flash Off : Curs Off : XEE=260
Locate 2,1 : Print "Sprite Number=";I
Locate 2,3 : Print "Sample Number=";SO
Locate 24,1 : Print "Disk Space Free=";Dfree
Locate 25,3 : Print "Show-All Version 2.0"
Locate 52,1 : Print "Free Chip Memory=";Chip Free
Locate 52,3 : Print "Free Fast Memory=";Fast Free
Ink 3
Draw 175,0 To 175,40
Draw 0,19 To 640,19
Draw 400,0 To 400,40
Ink 2
Screen 0
Colour 1,$9
Limit Mouse 130,40 To 446,296
Flash Off : Curs Off
Sam Bank 6
Menu$(1)="Loading"
Menu$(1,1)="Load Picture"
Menu$(1,2)="Load Sprites"
Menu$(1,3)="Load Music "
Menu$(1,4)="Load Sounds "
Menu$(1,5)="------------"
Menu$(1,6)="Instructions"
Menu$(1,7)="------------"
Menu$(1,8)=" Quit "
Menu$(2)=" Screen "
Menu$(2,1)="320x256"
Menu$(2,2)="640x256"
Menu$(3)="Save Screen "
Menu$(3,1)=" Unpacked "
Menu$(3,2)=" Packed "
Menu$(4)="Options"
Menu$(4,1)="Clear Screen"
Menu$(4,2)="------------"
Menu$(4,3)=" Music Off "
_SMALL_COPYRIGHT[225]
Procedure _SMALL_COPYRIGHT[YDISPLAY]
'
Auto View Off
'
Screen Open 7,320,24,16,0 : Curs Off : Flash Off : Cls 0
Screen Display 7,,-100,,
Paste Bob 260,3,1
Paper 0 : Pen 7 : Print At(1,1);"This program was written using"
Get Sprite Palette
View : Wait Vbl
'
For Y=1 To Screen Height/2
Screen Display 7,,YDISPLAY+Screen Height/2-Y,,Y*2
Screen Offset 7,,Screen Height/2-Y
View : Wait Vbl
Next
'
Wait 300
'
For Y=Screen Height/2 To 0 Step -1
Screen Display 7,,YDISPLAY+Screen Height/2-Y,,Y*2
Screen Offset 7,,Screen Height/2-Y
View : Wait Vbl
Next
'
Screen Close 7
Auto View On
'
End Proc
Erase 1
On Menu Goto TITLE1,TITLE2,TITLE3,TITLE4
FINISH:
On Menu On
Menu On
Goto BAND
TITLE1:
If Choice(2)=1 Then F$=Fsel$("","","Load an IFF File")
If(Choice(2)=1) and(F$="") Then Goto BAND
If(Choice(2)=1) Then Load Iff F$,0 : Screen To Back
On Error Goto TUTUT
If Choice(2)=2 Then Erase 1
If Choice(2)=2 Then F$=Fsel$("","","Load a Sprite File")
If(Choice(2)=2) and(F$="") Then Goto BAND
If Choice(2)=2 Then Screen 0 : Load F$,1 : Get Sprite Palette
On Error Goto TUTUT
If Choice(2)=2 Then Get Sprite Palette : Cls
If Choice(2)=3 Then F$=Fsel$("","","Load a Music File")
If(Choice(2)=3) and(F$="") Then Goto BAND
If Choice(2)=3 Then Load F$
On Error Goto TUTUT
If Choice(2)=3 Then Music 1
If Choice(2)=4 Then F$=Fsel$("","","Load Sound Effects")
If(Choice(2)=4) and(F$="") Then Goto BAND
If Choice(2)=4 Then Load F$,6
On Error Goto TUTUT
If Choice(2)=6 Then Goto HELPING
If Choice(2)=8 Then End
Goto BAND
TITLE2:
If Choice(2)=1 Then Goto RES1
If Choice(2)=2 Then Goto RES2
Goto BAND
TITLE3:
If Choice(2)=1 Then F$=Fsel$("","","Save an Unpacked Picture")
If(Choice(2)=1) and(F$="") Then Goto BAND
If Choice(2)=1 Then Save Iff F$,0
If Choice(2)=2 Then F$=Fsel$("","","Save a Packed Picture")
If(Choice(2)=2) and(F$="") Then Goto BAND
If Choice(2)=2 Then Save Iff F$,1
Goto BAND
TITLE4:
If Choice(2)=1 Then Cls : Screen 3 : Colour 0,$0 : Colour 1,$555 : Colour 2,$F11 : Colour 3,$777 : Screen 0
If Choice(2)=3 Then Music Off : Erase 3
Goto BAND
Goto FINISH
BAND:
A$=Inkey$
SCAN=Scancode
If SCAN=95 Then Goto HELPING
If SCAN=78 Then I=I+1
If SCAN=79 Then I=I-1
If SCAN=77 Then SO=SO-1 : PL=1
If SCAN=76 Then SO=SO+1 : PL=1
If A$=" " Then Sam Play SO
If SO<0 Then SO=0
If I<0 Then I=0
If IN<>I Then Bob 1,100,100,I
If(PL=1) and(SO>0) Then Sam Play SO
XCOR=X Screen(0,X Mouse)
YCOR=Y Screen(0,Y Mouse)
If(Mouse Key=1) and(Screen Width=320) Then Paste Bob XCOR,YCOR,I
If(Mouse Key=1) and(Screen Width=640) Then Paste Bob XCOR,YCOR,I
Screen 3
If A$="8" Then XEE=XEE-10
If A$="2" Then XEE=XEE+10
Screen Display 3,130,XEE,640,40
If IN<>I Then Locate 16,1 : Print " "
If SON<>SO Then Locate 16,3 : Print " "
If IN<>I Then Locate 2,1 : Print "Sprite Number=";I
If SON<>SO Then Locate 2,3 : Print "Sample Number=";SO
If Dfree<>DDD Then Locate 40,1 : Print " "
If Chip Free<>CCC Then Locate 69,1 : Print " "
If Fast Free<>FFF Then Locate 69,3 : Print " "
Locate 24,1 : Print "Disk Space Free=";Dfree
Locate 25,3 : Print "Show-All Version 2.0"
Locate 52,1 : Print "Free Chip Memory=";Chip Free
Locate 52,3 : Print "Free Fast Memory=";Fast Free
DDD=Dfree
CCC=Chip Free
FFF=Fast Free
Screen 0
SON=SO
IN=I : PL=0 : A$=""
On Error Goto TUTUT
Goto FINISH
RES1:
Screen Open 0,320,256,16,Lowres
Screen Display 0,130,40,320,256
Flash Off : Curs Off : Colour 1,$9
Screen To Back
Goto BAND
RES2:
Screen Open 0,640,256,16,Hires
Screen Display 0,130,40,640,256
Flash Off : Curs Off : Colour 1,$9
Screen To Back
Goto BAND
TUTUT:
Resume Next
HELPING:
Screen Open 2,640,256,4,Hires
Screen Display 2,130,40,640,256
Colour 1,$191
Flash Off : Curs Off
Print : Print
Centre "Show All Version 2.0"
Print
Print
Centre "by"
Print
Print
Centre "Murray Jones"
Print : Print : Print : Print : Print : Print
Print " Left Crsr = Sprite Up Right Crsr = Sprite Down"
Print
Print " Up Crsr = Sample Up Down Crsr = Sample Down"
Print
Print " 8 = Screen up 2 = Screen Down"
Print
Print " Space = Play Current Sound Help = Show This Screen"
Print : Print : Print : Print : Print
Centre "Any Key To Continue"
Wait Key
Screen Close 2
Screen 0
I=0
Goto BAND