home *** CD-ROM | disk | FTP | other *** search
Wrap
AMOS Source Code | 1992-02-21 | 4.5 KB | 188 lines
' '----------------- 'Paranoid 3D Demo '----------------- ' ' Greets ! Feel free to nose about this code if you want. ' This took me the best part of a week to do between ' figuring out how to use Amos 3D and trying to get the ' synchronisation right. Hope you like it . ' ' The music , by the way , is from " Introduce Yourself " ' by Faith no More . The Crab Song and Blood were the two songs . ' ' P.S If you're thinking of getting the source code for this game ' and you're going to send me a blank disk , could you please , ' if you have it , send me a copy of the Amos 3d Object Modeller ? ' ' My one is wrecked ! ' ' Screen Open 0,320,200,16,Lowres : Cls 0 Unpack 9 To 0 Do A$=Inkey$ J=Fire(1) If A$<>"" or J=-1 or Mouse Key>0 Then Exit Loop Fade 2 : Wait 30 Screen Open 0,320,200,16,Lowres : Cls 0 : Curs Off Global A1200 If Chip Free>1200000 Then CHECK12 Procedure CHECK12 Reserve Zone 2 Y$=Zone$("y",1) N$=Zone$("n",2) Paper 0 : Print " Is this an A1200 (";Y$;"/";N$;") ? " Do A$=Inkey$ If Mouse Zone=1 Then Locate 32,0 : Print "y" If Mouse Zone=2 Then Locate 32,0 : Print "n" If Mouse Zone=0 Then Locate 32,0 : Print " " If Mouse Zone=1 and Mouse Key=1 Then I$="y" : Exit If Mouse Zone=2 and Mouse Key=1 Then I$="n" : Exit If A$="y" Then Locate 32,0 : Print "y" : I$="y" : Exit If A$="n" Then Locate 32,0 : Print "n" : I$="n" : Exit Loop If I$="y" Then Cls : Centre "...compensating..." : Curs Off : A1200=1 : Wait 40 End Proc Extension_4_04D6 "df0:objects" Curs Off : Hide On Close Workbench ' Extension_4_0054 200 Screen 0 : Paper 0 : Cls : Curs Off : Wait Vbl Double Buffer Autoback 0 Extension_4_0016 "p" Extension_4_0016 "a" Extension_4_0016 "r" Extension_4_0016 "n" Extension_4_0016 "o" Extension_4_0016 "i" Extension_4_0016 "d" Extension_4_0036 1,"p",0,300,5000,0,0,0 Extension_4_0036 2,"a",800,0,5000,0,1600,0 Extension_4_0036 3,"r",1600,-150,5000,0,0,0 Extension_4_0036 4,"a",2400,-70,5000,0,0,0 Extension_4_0036 5,"n",3200,-150,5000,-1500,3500,0 Extension_4_0036 6,"o",4000,-150,5000,0,0,0 Extension_4_0036 7,"i",4800,-150,5000,0,0,0 Extension_4_0036 8,"d",5500,0,5000,1900,-300,1000 Palette ,,,,,,,,,$FFF,$F,$777 Extension_4_00EC 0,-9000,-1000,4000 'Td Angle 1,0,0,1000 ' Track Play Proc _PANS ' Procedure _DRAW A$=Inkey$ Extension_4_053C Extension_4_0318 Screen Swap If A1200=1 Then Wait 2 Else Wait Vbl If A$<>"" or Scancode=69 or Mouse Key=1 or Fire(1)=-1 Then Track Stop : Paper 0 : Cls : Extension_4_057C : Run "df0:animation.amos" : Rem * don't you just hate these really long lines ? * End Proc ' Procedure _PANS ' _PAN5 _PAN1 _PAN2 _PAN3 _PAN4 _PAN5 _PAN7 End Proc ' Procedure _PAN1 For N=1 To 50 Extension_4_01F8 0,4 Extension_4_00D4 0,400,-20,-20 _DRAW Next N End Proc Procedure _PAN2 For N=1 To 30 Extension_4_01F8 0,4 Extension_4_00D4 0,-200,50,-200 _DRAW Next N End Proc Procedure _PAN7 'Screen Open 0,320,256,16,Lowres 'Screen 0 : Screen To Front 0 : Cls 0 'Unpack 9 To 0 'Fade 5 : Wait 15*5 Cls 0 End Proc Procedure _PAN3 For N=1 To 20 Extension_4_01F8 0,4 Extension_4_00D4 0,0,100,300 _DRAW Next N End Proc Procedure _PAN4 For N=1 To 10 Extension_4_01F8 0,4 Extension_4_00D4 0,200,-50,100 _DRAW Next N For N=1 To 40 Extension_4_01F8 0,1 Extension_4_00D4 0,-250,0,0 _DRAW Next N If A1200=0 Then Pop Proc For N=1 To 30 Extension_4_01F8 0,1 Extension_4_00D4 0,-40,-70,-20 _DRAW Next N For N=1 To 10 Extension_4_01F8 0,8 Extension_4_00D4 0,500,100,30 _DRAW Next N End Proc Procedure _PAN5 For B=1 To 8 Extension_4_00EC 0,0,-1000,0 Extension_4_01F8 0,4 _DRAW For N=1 To 15 Extension_4_00D4 0,200,150,450 Extension_4_01F8 0,9-B _DRAW Next N Next B Extension_4_00EC 0,-6000,0,-7000 Extension_4_01A6 0,0,0,9000 Extension_4_01F8 0,1 For N=1 To 16 Extension_4_00D4 0,800,0,600 Extension_4_01F8 0,1 _DRAW Next N For N=1 To 25 Extension_4_00D4 0,-800,150,-100 Extension_4_01F8 0,8 _DRAW Next N Fade 5 : Wait 15*5 End Proc Paper 0 : Cls Extension_4_057C Unpack 8 To 0 Wait Vbl Do Z=Z+1 A$=Inkey$ If A$<>"" Then Exit If Mouse Key>0 Then Exit If Fire(1)=-1 Then Exit If Z=8000 Then Exit Loop Sam Stop Run "df0:animation.amos"