home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 4: Demo 1
/
almathera_demo1.bin
/
amos
/
vertstars.amos
/
vertstars.amosSourceCode
Wrap
AMOS Source Code
|
1995-03-16
|
774b
|
32 lines
Randomize Timer
Screen Open 0,320,256,2,Lowres
Curs Off : Flash Off : Hide
Double Buffer : Autoback 0
Colour 0,0
Colour 1,$FFF
Cls 0
Ink 1
N=25
MASPEED=5
MISPEED=1
Reserve As Work 13,200 : Rem *********Xplace of star.
Reserve As Work 14,200 : Rem *****YPlace of star.
Reserve As Work 15,200 : Rem **Speed of star.
For X=1 To N
Poke(Start(13)+X),Rnd(320)
Poke Start(14)+X,Rnd(256)
Poke Start(15)+X,Rnd(MASPEED)+MISPEED
Next
Repeat
Cls 0
For S=1 To N
Poke(Start(13)+S),Peek(Start(13)+S)+Peek(Start(15)+S)
If Peek(Start(13)+S)>320
Poke(Start(13)+S),0
Poke(Start(14)+S),Rnd(256)
Poke(Start(15)+S),Rnd(MASPEED)+MISPEED
End If
Plot Peek(Start(13)+S),Peek(Start(14)+S)
Next
Screen Swap
Until Mouse Key