home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
351-375
/
apd371
/
zion.amos
/
zion.amosSourceCode
< prev
Wrap
AMOS Source Code
|
1991-07-30
|
7KB
|
249 lines
'
'
' Z I O N Demo
' ==============
'
' Full game available soon.
'
Screen Close 0
Hide On
Screen Open 3,320,251,16,Lowres
Colour 1,$FFF : Pen 1 : Paper 0 : Ink 1,0 : Curs Off : Flash Off : Cls 0
Box 1,1 To 21,21
Get Bob 1,0,0 To 22,22
Load Iff "Graphics/Zion2.Iff"
Screen Hide 3
Screen Open 2,340,270,2,Lowres
Colour 1,$FFF : Ink 1,0 : Curs Off : Flash Off : Cls 0
Screen Hide 2
For F=1 To 100
X=Rnd(340)
Y=Rnd(270)
Plot X,Y
Next F
Screen Open 0,320,256,16,Lowres
Curs Off : Flash Off : Cls 0
Double Buffer : Autoback 0
Screen Open 1,320,70,16,Lowres
Curs Off : Flash Off : Cls 0
Load Iff "Graphics/Zion1.Iff"
Screen Display 1,130,220,320,70
Screen 0
Pen 1 : Paper 0 : Colour 1,$FFF
'
Dim PLANET$(10)
PLANET$(1)="Zircon "
PLANET$(2)="Omega "
PLANET$(3)="Epilson "
PLANET$(4)="Betelgeuse"
PLANET$(5)="Zeugma "
'
'
If Not Exist("AMOS:")
Centre At(,10)+"Please insert volume AMOS:"
Centre At(,11)+"into ANY drive"
Repeat
Curs Off
Until Exist("AMOS:")
End If
Curs Off : Cls 0
Dir$="AMOS:"
Extension_4_0548
Extension_4_0054 200
'
If Not Exist("Odyssey:")
Centre At(,10)+"Please insert volume Odyssey:"
Centre At(,11)+"into ANY drive"
Repeat
Curs Off
Until Exist("Odyssey:")
End If
Curs Off : Cls 0
Dir$="Odyssey:"
Extension_4_04D6 "Df0:3D/"
Extension_4_0016 "zion1"
Extension_4_0016 "zion2"
Extension_4_0016 "zion3"
'
Extension_4_0036 1,"zion1",8000,2000,80000,0,0,0
Extension_4_0036 2,"zion2",-5000,2000,60000,0,0,0
Extension_4_0036 3,"zion3",1000,2000,90000,0,0,0
Extension_4_0036 4,"zion1",10000,7000,2000,0,0,0
Extension_4_0036 5,"zion2",-4000,-5000,30000,0,0,0
Extension_4_00EC 0,2000,2000,50000
Extension_4_0328 0,0,0,0,0,100
Extension_4_0328 1,0,0,0,1,10000
Extension_4_0328 2,0,0,0,2,10000
Extension_4_0328 3,0,0,0,3,10000
Extension_4_0328 4,0,0,0,4,10000
Extension_4_0328 5,0,0,0,5,10000
'
'
X=130 : Y=30
X2=0 : Y2=0
P$="None"
RNG=0
Repeat
Extension_4_053C
Extension_4_049E 3,0,0,320,251 To 0,0
Extension_4_0318
Extension_4_049E 2,0,0,320,256 To 0,0
Screen Swap
Wait Vbl
Extension_4_01F8 1,0
Extension_4_01F8 2,0
Extension_4_01F8 3,0
Extension_4_01F8 4,0
Extension_4_01F8 5,0
If Extension_4_0344(0)=1
RNG= Extension_4_007E(1,0)
P$=PLANET$(1)
P=1
End If
If Extension_4_0344(0)=2
RNG= Extension_4_007E(2,0)
P$=PLANET$(2)
P=2
End If
If Extension_4_0344(0)=3
RNG= Extension_4_007E(3,0)
P$=PLANET$(3)
P=3
End If
If Extension_4_0344(0)=4
RNG= Extension_4_007E(4,0)
P$=PLANET$(4)
P=4
End If
If Extension_4_0344(0)=5
RNG= Extension_4_007E(5,0)
P$=PLANET$(5)
P=5
End If
If Extension_4_0344(0)=-1
RNG=0
P$="None "
P=0
End If
If RNG<200 and RNG>0
INFO[P$]
SP=-100
Extension_4_0100 0,-300
End If
'
If Jup(1)
Extension_4_018C 0,-500,0,0
For F=1 To 2
Screen Copy 2,0,0,320,250 To 2,0,-4
Screen Copy 2,0,0,320,20 To 2,0,200
Next F
End If
If Jdown(1)
Extension_4_018C 0,500,0,0
For F=1 To 2
Screen Copy 2,0,0,320,250 To 2,0,4
Screen Copy 2,0,200,320,220 To 2,0,0
Next F
End If
If Jleft(1)
Extension_4_018C 0,0,-500,0
For F=1 To 2
Screen Copy 2,0,0,320,250 To 2,4,0
Screen Copy 2,300,0,320,320 To 2,0,0
Next F
End If
If Jright(1)
Extension_4_018C 0,0,500,0
For F=1 To 2
Screen Copy 2,0,0,320,250 To 2,-4,0
Screen Copy 2,0,0,20,250 To 2,300,0
Next F
End If
'
Extension_4_0100 0,SP
A$=Lower$(Inkey$)
If A$="="
Add SP,100
If SP>1000
SP=1000
End If
End If
If A$="-"
Add SP,-100
If SP<-200
SP=-200
End If
End If
If A$=" "
SP=0
End If
'
Screen 1
Ink 3,0
Text 40,12,P$
Text 40,26,Str$(RNG)-" "+" "
Text 195,12,Str$(SP)-" "+" "
Ink 10,0
Text 4,59,M$
Screen 0
Until QUIT=1
'
Procedure INFO[P$]
S$=String$(" ",37)
If Left$(P$,6)="Zeugma"
S$=S$+"Zeugma, is the home of the Galactic Government."
S$=S$+"In the full game, you'll be able to visit the galactic "
S$=S$+"parliament. Alas, you won't be able to become president, "
S$=S$+"but you'll see where all the galactic decisions are carried "
S$=S$+"out. "
S$=S$+"Also, This planet has no sea, therefore you won't find a "
S$=S$+"navy. "
S$=S$+"Like most planets, the Zeugmians, are mainly humanoid. But they"
S$=S$+" also provide the best hospitality in the galaxy. "
End If
If Left$(P$,10)="Betelgeuse"
S$=S$+"Betelgeuse, is the only planet in the Zion Solar System, which"
S$=S$+" can be seen from Earth. Earth itself, is called Djon on Betelgeuse. "
S$=S$+"Plans have come to make intergalactic contact with Earth, but "
S$=S$+"Betelgeuse Research centres, still require more information, "
S$=S$+"before going ahead. Because of all this work in the Extra Terrestrial "
S$=S$+"departments, Betelgeuse has become the main research planet. "
End If
If Left$(P$,6)="Zircon"
S$=S$+"Zircon, is the central trading planet of the whole Zion system. "
S$=S$+"Almost everything can be bought and sold here. And it is the "
S$=S$+"busiest planet in the whole galaxy. It is also the place where "
S$=S$+"a trader can make millions of Stellar currency, at the selling of "
S$=S$+"cargo. Back in 20000 B.C ( Earth Date ), Zircon suffered a large "
S$=S$+"pollution catastrophe, killing 3 billion people. Zircon recovered "
S$=S$+"only 1000 yrs ago. "
End If
If Left$(P$,5)="Omega"
S$=S$+"The Omegians, have long since trashed the wheel, and has now become "
S$=S$+"the centre of technology and entertainment. Anyone who wants to "
S$=S$+"make it big in film, advertising or technology comes here. And it "
S$=S$+"provides worthy competitors with a good life, if they can beat the "
S$=S$+"rest of the bunch. "
End If
If Left$(P$,7)="Epilson"
S$=S$+"Epilson has the biggest residential town in the solar system. "
S$=S$+"Millions of beings commute to work on other planets from here. "
S$=S$+"Although it has the biggest residential area, it is not the only "
S$=S$+"one. ( Most planets have one, for the convieniance ). "
S$=S$+"It is also, mainly tropical. Most towns have been made into "
S$=S$+"luxurious resorts for the rich only. "
End If
Screen 1
Ink 10,0
V=1 : L=Len(S$)
Repeat
Text 4,59,Mid$(S$,V,39)
Add V,1
If V>L
V=1
End If
Wait 4
Until Fire(1)
Text 4,59,String$(" ",39)
Screen 0
End Proc