home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
sourcecode
/
demos
/
dchanger.amos
/
dchanger.amosSourceCode
< prev
next >
Wrap
AMOS Source Code
|
1978-01-16
|
12KB
|
541 lines
Set Buffer 20
Mvolume 63
Load "musak2.abk"
Music 1 : Tempo 17
Screen Open 0,320,140,8,Lowres : Flash Off : Curs Off : Cls 0 : Hide : For Z=0 To 31 : Colour Z,$0 : Next Z
Screen Open 1,320,140,4,Lowres : Flash Off : Curs Off : Cls 0 : Hide : Double Buffer : Autoback 0
Screen Open 2,320,100,32,Lowres : Flash Off : Curs Off : Cls 0 : Hide
Screen Display 2,128,180,320,100
Screen Display 0,128,40,320,140
Screen Display 1,128,40,320,140
Wait Vbl
Dual Playfield 0,1 : Screen Offset 1,1, : Screen Offset 0,1,
Screen 0 : Load Iff "dc" : Colour 9,$40 : Colour 10,$80 : Colour 11,$B0
Screen 2 : Load Iff "floorswap" : Shift Up 1,2,31,1
Screen 1
X=1 : XX=180
A=1
S=3
T=6
U=9
V=12
W=15
X=18
Y=21
Z=24
S1=27
T1=30
U1=33
V1=36
W1=39
X1=42
Y1=45
Z1=48
S2=51
T2=54
U2=57
V2=60
W2=63
X2=66
Y2=69
Z2=72
S3=75
T3=78
U3=81
V3=84
W3=87
X3=90
Y3=93
Z3=96
S4=99
T4=102
U4=105
V4=107
W4=109
X4=112
Y4=115
Z4=118
S5=121
T5=124
U5=127
V5=130
W5=133
X5=136
Y5=139
Z6=142
S6=145
T6=148
U6=151
V6=154
W6=157
X6=160
Y6=163
Z6=166
S7=169
T7=172
U7=175
V7=178
W7=181
X7=184
Y7=187
Z7=190
COUNTER=3330
Degree
A=Rnd(180)
B=Rnd(180)
C=Rnd(180)
D=Rnd(180)
E=Rnd(180)
F=Rnd(180)
G=Rnd(180)
A1=Rnd(180)
B1=Rnd(180)
C1=Rnd(180)
D1=Rnd(180)
E1=Rnd(180)
F1=Rnd(180)
G1=Rnd(180)
A2=Rnd(180)
B2=Rnd(180)
C2=Rnd(180)
D2=Rnd(180)
E2=Rnd(180)
F2=Rnd(180)
G2=Rnd(180)
A3=Rnd(180)
B3=Rnd(180)
C3=Rnd(180)
D3=Rnd(180)
E3=Rnd(180)
F3=Rnd(180)
G3=Rnd(180)
A4=Rnd(180)
B4=Rnd(180)
C4=Rnd(180)
D4=Rnd(180)
E4=Rnd(180)
F4=Rnd(180)
G4=Rnd(180)
A5=Rnd(180)
B5=Rnd(180)
C5=Rnd(180)
D5=Rnd(180)
E5=Rnd(180)
F5=Rnd(180)
G5=Rnd(180)
A6=Rnd(180)
B6=Rnd(180)
C6=Rnd(180)
D6=Rnd(180)
E6=Rnd(180)
F6=Rnd(180)
G6=Rnd(180)
A7=Rnd(180)
B7=Rnd(180)
C7=Rnd(180)
D7=Rnd(180)
E7=Rnd(180)
F7=Rnd(180)
G7=Rnd(180)
COUNT=1
Gosub SRT
ST:
Do : Randomize Timer
Paste Bob X#*S+160,Y#*S+128,1
Paste Bob X1#*T+160,Y1#*T+128,1
Paste Bob X2#*U+160,Y2#*U+128,1
Paste Bob X3#*V+160,Y3#*V+128,1
Paste Bob X4#*W+160,Y4#*W+128,1
Paste Bob X5#*X+160,Y5#*X+128,1
Paste Bob X6#*Y+160,Y6#*Y+128,1
Paste Bob X7#*Z+160,Y7#*Z+128,1
Paste Bob X8#*S1+160,Y8#*S1+128,1
Paste Bob X9#*T1+160,Y9#*T1+128,1
Paste Bob X10#*U1+160,Y10#*U1+128,1
Paste Bob X11#*V1+160,Y11#*V1+128,1
Paste Bob X12#*W1+160,Y12#*W1+128,1
Paste Bob X13#*X1+160,Y13#*X1+128,1
Paste Bob X14#*Y1+160,Y14#*Y1+128,1
Paste Bob X15#*Z1+160,Y15#*Z1+128,1
Paste Bob X16#*S2+160,Y16#*S2+128,1
Paste Bob X17#*T2+160,Y17#*T2+128,1
Paste Bob X18#*U2+160,Y18#*U2+128,1
Paste Bob X19#*V2+160,Y19#*V2+128,1
Paste Bob X20#*W2+160,Y20#*W2+128,1
Paste Bob X21#*X2+160,Y21#*X2+128,1
Paste Bob X22#*Y2+160,Y22#*Y2+128,1
Paste Bob X23#*Z2+160,Y23#*Z2+128,1
Paste Bob X24#*S3+160,Y24#*S3+128,1
Paste Bob X25#*T3+160,Y25#*T3+128,1
Paste Bob X26#*U3+160,Y26#*U3+128,1
Paste Bob X27#*V3+160,Y27#*V3+128,1
Paste Bob X28#*W3+160,Y28#*W3+128,1
Paste Bob X29#*X3+160,Y29#*X3+128,1
Paste Bob X30#*Y3+160,Y30#*Y3+128,1
Paste Bob X31#*Z3+160,Y31#*Z3+128,1
Paste Bob X32#*S4+160,Y32#*S4+128,1
Paste Bob X33#*T4+160,Y33#*T4+128,1
Paste Bob X34#*U4+160,Y34#*U4+128,1
Paste Bob X35#*V4+160,Y35#*V4+128,1
Paste Bob X36#*W4+160,Y36#*W4+128,1
Paste Bob X37#*X4+160,Y37#*X4+128,1
Paste Bob X38#*Y4+160,Y38#*Y4+128,1
Paste Bob X39#*Z4+160,Y39#*Z4+128,1
Paste Bob X40#*S5+160,Y40#*S5+128,1
Paste Bob X41#*T5+160,Y41#*T5+128,1
Paste Bob X42#*U5+160,Y42#*U5+128,1
Paste Bob X43#*V5+160,Y43#*V5+128,1
Paste Bob X44#*W5+160,Y44#*W5+128,1
Paste Bob X45#*X5+160,Y45#*X5+128,1
Paste Bob X46#*Y5+160,Y46#*Y5+128,1
Paste Bob X47#*Z5+160,Y47#*Z5+128,1
Paste Bob X48#*S6+160,Y48#*S6+128,1
Paste Bob X49#*T6+160,Y49#*T6+128,1
Paste Bob X50#*U6+160,Y50#*U6+128,1
Paste Bob X51#*V6+160,Y51#*V6+128,1
Paste Bob X52#*W6+160,Y52#*W6+128,1
Paste Bob X53#*X6+160,Y53#*X6+128,1
Paste Bob X54#*Y6+160,Y54#*Y6+128,1
Paste Bob X55#*Z6+160,Y55#*Z6+128,1
Paste Bob X56#*S7+160,Y56#*S7+128,1
Paste Bob X57#*T7+160,Y57#*T7+128,1
Paste Bob X58#*U7+160,Y58#*U7+128,1
Paste Bob X59#*V7+160,Y59#*V7+128,1
Paste Bob X60#*W7+160,Y60#*W7+128,1
Paste Bob X61#*X7+160,Y61#*X7+128,1
Paste Bob X62#*Y7+160,Y62#*Y7+128,1
Paste Bob X63#*Z7+160,Y63#*Z7+128,1
Screen Swap : Wait Vbl : Cls 0 : If Mouse Key=1 Then Goto TEND
Add S,4 : Add T,2 : Add U,6 : Add V,1 : Add W,5 : Add X,3 : Add Y,6 : Add Z,1
Add S1,4 : Add T1,2 : Add U1,5 : Add V1,1 : Add W1,4 : Add X1,3 : Add Y1,6 : Add Z1,1
Add S2,5 : Add T2,2 : Add U2,6 : Add V2,1 : Add W2,4 : Add X2,3 : Add Y2,5 : Add Z2,1
Add S3,4 : Add T3,2 : Add U3,6 : Add V3,1 : Add W3,5 : Add X3,3 : Add Y3,6 : Add Z3,1
Add S4,4 : Add T4,2 : Add U4,5 : Add V4,1 : Add W4,4 : Add X4,3 : Add Y4,6 : Add Z4,1
Add S5,5 : Add T5,2 : Add U5,6 : Add V5,1 : Add W5,4 : Add X5,3 : Add Y5,5 : Add Z5,1
Add S6,4 : Add T6,2 : Add U6,6 : Add V6,1 : Add W6,5 : Add X6,3 : Add Y6,6 : Add Z6,1
Add S7,4 : Add T7,2 : Add U7,7 : Add V7,1 : Add W7,4 : Add X7,3 : Add Y7,6 : Add Z7,1
If S=>180 Then S=1 : Gosub SRT
If T=>180 Then T=1 : A=Rnd(180) : Gosub SRT1
If U=>180 Then U=1 : B=Rnd(180) : Gosub SRT2
If V=>180 Then V=1 : C=Rnd(180) : Gosub SRT3
If W=>180 Then W=1 : D=Rnd(180) : Gosub SRT4
If X=>180 Then X=1 : E=Rnd(180) : Gosub SRT5
If Y=>180 Then Y=1 : D=Rnd(180) : Gosub SRT6
If Z=>180 Then Z=1 : F=Rnd(180) : Gosub SRT7
If S1=>180 Then S1=1 : Gosub SRT8
If T1=>180 Then T1=1 : A1=Rnd(180) : Gosub SRT9
If U1=>180 Then U1=1 : B1=Rnd(180) : Gosub SRT10
If V1=>180 Then V1=1 : C1=Rnd(180) : Gosub SRT11
If W1=>180 Then W1=1 : D1=Rnd(180) : Gosub SRT12
If X1=>180 Then X1=1 : E1=Rnd(180) : Gosub SRT13
If Y1=>180 Then Y1=1 : D1=Rnd(180) : Gosub SRT14
If Z1=>180 Then Z1=1 : F1=Rnd(180) : Gosub SRT15
If S2=>180 Then S2=1 : Gosub SRT16
If T2=>180 Then T2=1 : A2=Rnd(180) : Gosub SRT17
If U2=>180 Then U2=1 : B2=Rnd(180) : Gosub SRT18
If V2=>180 Then V2=1 : C2=Rnd(180) : Gosub SRT19
If W2=>180 Then W2=1 : D2=Rnd(180) : Gosub SRT20
If X2=>180 Then X2=1 : E2=Rnd(180) : Gosub SRT21
If Y2=>180 Then Y2=1 : D2=Rnd(180) : Gosub SRT22
If Z2=>180 Then Z2=1 : F2=Rnd(180) : Gosub SRT23
If S3=>180 Then S3=1 : Gosub SRT24
If T3=>180 Then T3=1 : A3=Rnd(180) : Gosub SRT25
If U3=>180 Then U3=1 : B3=Rnd(180) : Gosub SRT26
If V3=>180 Then V3=1 : C3=Rnd(180) : Gosub SRT27
If W3=>180 Then W3=1 : D3=Rnd(180) : Gosub SRT28
If X3=>180 Then X3=1 : E3=Rnd(180) : Gosub SRT29
If Y3=>180 Then Y3=1 : D3=Rnd(180) : Gosub SRT30
If Z3=>180 Then Z3=1 : F3=Rnd(180) : Gosub SRT31
If S4=>180 Then S4=1 : Gosub SRT32
If T4=>180 Then T4=1 : A4=Rnd(180) : Gosub SRT33
If U4=>180 Then U4=1 : B4=Rnd(180) : Gosub SRT34
If V4=>180 Then V4=1 : C4=Rnd(180) : Gosub SRT35
If W4=>180 Then W4=1 : D4=Rnd(180) : Gosub SRT36
If X4=>180 Then X4=1 : E4=Rnd(180) : Gosub SRT37
If Y4=>180 Then Y4=1 : D4=Rnd(180) : Gosub SRT38
If Z4=>180 Then Z4=1 : F4=Rnd(180) : Gosub SRT39
If S5=>180 Then S5=1 : Gosub SRT40
If T5=>180 Then T5=1 : A5=Rnd(180) : Gosub SRT41
If U5=>180 Then U5=1 : B5=Rnd(180) : Gosub SRT42
If V5=>180 Then V5=1 : C5=Rnd(180) : Gosub SRT43
If W5=>180 Then W5=1 : D5=Rnd(180) : Gosub SRT44
If X5=>180 Then X5=1 : E5=Rnd(180) : Gosub SRT45
If Y5=>180 Then Y5=1 : D5=Rnd(180) : Gosub SRT46
If Z5=>180 Then Z5=1 : F5=Rnd(180) : Gosub SRT47
If S6=>180 Then S6=1 : Gosub SRT48
If T6=>180 Then T6=1 : A6=Rnd(180) : Gosub SRT49
If U6=>180 Then U6=1 : B6=Rnd(180) : Gosub SRT50
If V6=>180 Then V6=1 : C6=Rnd(180) : Gosub SRT51
If W6=>180 Then W6=1 : D6=Rnd(180) : Gosub SRT52
If X6=>180 Then X6=1 : E6=Rnd(180) : Gosub SRT53
If Y6=>180 Then Y6=1 : D6=Rnd(180) : Gosub SRT54
If Z6=>180 Then Z6=1 : F6=Rnd(180) : Gosub SRT55
If S7=>180 Then S7=1 : Gosub SRT56
If T7=>180 Then T7=1 : A7=Rnd(180) : Gosub SRT57
If U7=>180 Then U7=1 : B7=Rnd(180) : Gosub SRT58
If V7=>180 Then V7=1 : C7=Rnd(180) : Gosub SRT59
If W7=>180 Then W7=1 : D7=Rnd(180) : Gosub SRT60
If X7=>180 Then X7=1 : E7=Rnd(180) : Gosub SRT61
If Y7=>180 Then Y7=1 : D7=Rnd(180) : Gosub SRT62
If Z7=>180 Then Z7=1 : F7=Rnd(180) : Gosub SRT63
Loop
SRT:
X#=Cos(COUNT+Rnd(180))
Y#=Cos(COUNTER+Rnd(180))
Return
SRT1:
X1#=Cos(COUNT+A)
Y1#=Cos(COUNTER+A)
Return
SRT2:
X2#=Cos(COUNT+B)
Y2#=Cos(COUNTER+B)
Return
SRT3:
X3#=Cos(COUNT+C)
Y3#=Cos(COUNTER+C)
Return
SRT4:
X4#=Cos(COUNT+D)
Y4#=Cos(COUNTER+D)
Return
SRT5:
X5#=Cos(COUNT+E)
Y5#=Cos(COUNTER+E)
SRT6:
X6#=Cos(COUNT+F)
Y6#=Cos(COUNTER+F)
Return
SRT7:
X7#=Cos(COUNT+G)
Y7#=Cos(COUNTER+G)
Return
SRT8:
X8#=Cos(COUNT+Rnd(180))
Y8#=Cos(COUNTER+Rnd(180))
Return
SRT9:
X9#=Cos(COUNT+A1)
Y9#=Cos(COUNTER+A1)
Return
SRT10:
X10#=Cos(COUNT+B1)
Y10#=Cos(COUNTER+B1)
Return
SRT11:
X11#=Cos(COUNT+C1)
Y11#=Cos(COUNTER+C1)
Return
SRT12:
X12#=Cos(COUNT+D1)
Y12#=Cos(COUNTER+D1)
Return
SRT13:
X13#=Cos(COUNT+E1)
Y13#=Cos(COUNTER+E1)
Return
SRT14:
X14#=Cos(COUNT+F1)
Y14#=Cos(COUNTER+F1)
Return
SRT15:
X15#=Cos(COUNT+G1)
Y15#=Cos(COUNTER+G1)
Return
SRT16:
X16#=Cos(COUNT)
Y16#=Cos(COUNTER)
Return
SRT17:
X17#=Cos(COUNT+A2)
Y17#=Cos(COUNTER+A2)
Return
SRT18:
X18#=Cos(COUNT+B2)
Y18#=Cos(COUNTER+B2)
Return
SRT19:
X19#=Cos(COUNT+C2)
Y19#=Cos(COUNTER+C2)
Return
SRT20:
X20#=Cos(COUNT+D2)
Y20#=Cos(COUNTER+D2)
Return
SRT21:
X21#=Cos(COUNT+E2)
Y21#=Cos(COUNTER+E2)
Return
SRT22:
X22#=Cos(COUNT+F2)
Y22#=Cos(COUNTER+F2)
Return
SRT23:
X23#=Cos(COUNT+G2)
Y23#=Cos(COUNTER+G2)
Return
SRT24:
X24#=Cos(COUNT+Rnd(180))
Y24#=Cos(COUNTER+Rnd(180))
Return
SRT25:
X25#=Cos(COUNT+A3)
Y25#=Cos(COUNTER+A3)
Return
SRT26:
X26#=Cos(COUNT+B3)
Y26#=Cos(COUNTER+B3)
Return
SRT27:
X27#=Cos(COUNT+C3)
Y27#=Cos(COUNTER+C3)
Return
SRT28:
X28#=Cos(COUNT+D3)
Y28#=Cos(COUNTER+D3)
Return
SRT29:
X29#=Cos(COUNT+E3)
Y29#=Cos(COUNTER+E3)
Return
SRT30:
X30#=Cos(COUNT+F3)
Y30#=Cos(COUNTER+F3)
Return
SRT31:
X31#=Cos(COUNT+G3)
Y31#=Cos(COUNTER+G3)
Return
SRT32:
X32#=Cos(COUNT+Rnd(180))
Y32#=Cos(COUNTER+Rnd(180))
Return
SRT33:
X33#=Cos(COUNT+A4)
Y33#=Cos(COUNTER+A4)
Return
SRT34:
X34#=Cos(COUNT+B4)
Y34#=Cos(COUNTER+B4)
Return
SRT35:
X35#=Cos(COUNT+C4)
Y35#=Cos(COUNTER+C4)
Return
SRT36:
X36#=Cos(COUNT+D4)
Y36#=Cos(COUNTER+D4)
Return
SRT37:
X37#=Cos(COUNT+E4)
Y37#=Cos(COUNTER+E4)
SRT38:
X38#=Cos(COUNT+F4)
Y38#=Cos(COUNTER+F4)
Return
SRT39:
X39#=Cos(COUNT+G4)
Y39#=Cos(COUNTER+G4)
Return
SRT40:
X40#=Cos(COUNT)
Y40#=Cos(COUNTER)
Return
SRT41:
X41#=Cos(COUNT+A5)
Y41#=Cos(COUNTER+A5)
Return
SRT42:
X42#=Cos(COUNT+B5)
Y42#=Cos(COUNTER+B5)
Return
SRT43:
X43#=Cos(COUNT+C5)
Y43#=Cos(COUNTER+C5)
Return
SRT44:
X44#=Cos(COUNT+D5)
Y44#=Cos(COUNTER+D5)
Return
SRT45:
X45#=Cos(COUNT+E5)
Y45#=Cos(COUNTER+E5)
Return
SRT46:
X46#=Cos(COUNT+F5)
Y46#=Cos(COUNTER+F5)
Return
SRT47:
X47#=Cos(COUNT+G5)
Y47#=Cos(COUNTER+G5)
Return
SRT48:
X48#=Cos(COUNT+Rnd(180))
Y48#=Cos(COUNTER+Rnd(180))
Return
SRT49:
X49#=Cos(COUNT+A6)
Y49#=Cos(COUNTER+A6)
Return
SRT50:
X50#=Cos(COUNT+B6)
Y50#=Cos(COUNTER+B6)
Return
SRT51:
X51#=Cos(COUNT+C6)
Y51#=Cos(COUNTER+C6)
Return
SRT52:
X52#=Cos(COUNT+D6)
Y52#=Cos(COUNTER+D6)
Return
SRT53:
X53#=Cos(COUNT+E6)
Y53#=Cos(COUNTER+E6)
Return
SRT54:
X54#=Cos(COUNT+F6)
Y54#=Cos(COUNTER+F6)
Return
SRT55:
X55#=Cos(COUNT+G6)
Y55#=Cos(COUNTER+G6)
Return
SRT56:
X56#=Cos(COUNT+Rnd(180))
Y56#=Cos(COUNTER+Rnd(180))
Return
SRT57:
X57#=Cos(COUNT+A7)
Y57#=Cos(COUNTER+A7)
Return
SRT58:
X58#=Cos(COUNT+B7)
Y58#=Cos(COUNTER+B7)
Return
SRT59:
X59#=Cos(COUNT+C7)
Y59#=Cos(COUNTER+C7)
Return
SRT60:
X60#=Cos(COUNT+D7)
Y60#=Cos(COUNTER+D7)
Return
SRT61:
X61#=Cos(COUNT+E7)
Y61#=Cos(COUNTER+E7)
Return
SRT62:
X62#=Cos(COUNT+F7)
Y62#=Cos(COUNTER+F7)
Return
SRT63:
X63#=Cos(COUNT+G7)
Y63#=Cos(COUNTER+G7)
Return
TEND:
A=Exist("MEGADEMO1:cosmic.amos")
If A=0 Then Goto ST
Dir$="MEGADEMO1:"
Screen 0
Fade 5 : Wait 75 : For Z=63 To 0 Step -1 : Wait Vbl : Mvolume Z : Next Z : Screen Close 0 : Screen Close 1 : Screen Close 2 : Run "cosmic.amos"